Esempio n. 1
0
 private void OnServiceAdded(object sender, [NotNull] ServiceEventArgs args)
 {
     if (args.ServiceType == typeof(T))
     {
         serviceReady((T)args.Instance);
         services.ServiceAdded -= OnServiceAdded;
     }
 }
Esempio n. 2
0
 void Services_ServiceAdded(object sender, ServiceEventArgs args)
 {
     if (args.ServiceType == typeof(T))
     {
         serviceReady((T)args.Instance);
         services.ServiceAdded -= Services_ServiceAdded;
     }
 }
Esempio n. 3
0
        private void OnServiceRemoved(ServiceEventArgs e)
        {
            EventHandler <ServiceEventArgs> handler = ServiceRemoved;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 4
0
 private void OnServiceRemoved(ServiceEventArgs e)
 {
     EventHandler<ServiceEventArgs> handler = ServiceRemoved;
     if (handler != null) handler(this, e);
 }
Esempio n. 5
0
 private void OnServiceRemoved(ServiceEventArgs e)
 {
     ServiceRemoved?.Invoke(this, e);
 }