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