/// <summary>
 ///     Adds an object of <see cref="IUWPBridgeService" />
 /// </summary>
 /// <typeparam name="T">Type of the object to be acquired</typeparam>
 /// <param name="service">instance of service</param>
 public void AddService <T>(IUWPBridgeService service) where T : IUWPBridgeService
 {
     lock (LockObject)
     {
         _serviceCollection.Add(service);
     }
 }
 /// <summary>
 ///     Adds an object of <see cref="IUWPBridgeService" />
 /// </summary>
 /// <typeparam name="T">Type of the object to be acquired</typeparam>
 /// <param name="service">instance of service</param>
 public void AddService <T>(IUWPBridgeService service) where T : IUWPBridgeService
 {
     lock (LockObject)
     {
         _instance.AddService <T>(service);
     }
 }
Ejemplo n.º 3
0
 public static void AddService <T>(IUWPBridgeService service) where T : IUWPBridgeService
 {
     lock (LockObject)
     {
         if (_serviceCollection == null)
         {
             _serviceCollection = new List <IUWPBridgeService>();
         }
         _serviceCollection.Add(service);
     }
 }