Example #1
0
 public static void RegisterService(Type type, object service)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     ServiceStore.RegisterService(type, service);
 }
Example #2
0
 public static void RegisterService <T> (T service) where T : class
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     ServiceStore.RegisterService(typeof(T), service);
 }