Exemplo n.º 1
0
 /// <summary>
 /// Lazily registers the ILoggingService
 /// </summary>
 /// <param name="service">Service to register.</param>
 public static void RegisterService(Func <ILoggingService> service)
 {
     ServiceContainer.Register <ILoggingService>(service);
     _registeredService     = null;
     _registeredServiceFunc = service;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Registers the IThreadService
 /// </summary>
 /// <param name="service">Service to register.</param>
 public static void RegisterService(IThreadService service)
 {
     ServiceContainer.Register <IThreadService>(service);
     _registeredServiceFunc = null;
     _registeredService     = service;
 }