/src/UnitTests/IOC/Configuration/NamedOncePerRequestSampleService.cs
C# | 15 lines | 14 code | 1 blank | 0 comment | 0 complexity | 4213497e2adc706de1131e8420450f69 MD5 | raw file
1using System; 2using LinFu.IoC.Configuration; 3using SampleLibrary; 4 5namespace LinFu.UnitTests.IOC.Configuration 6{ 7 [Implements(typeof(ISampleService), LifecycleType.OncePerRequest, ServiceName = "MyService")] 8 public class NamedOncePerRequestSampleService : ISampleService 9 { 10 public void DoSomething() 11 { 12 throw new NotImplementedException(); 13 } 14 } 15}