private void OnServiceAdded(object sender, [NotNull] ServiceEventArgs args)
 {
     if (args.ServiceType == typeof(T))
     {
         serviceReady((T)args.Instance);
         services.ServiceAdded -= OnServiceAdded;
     }
 }
Esempio n. 2
0
 private void OnServiceRemoved(ServiceEventArgs e)
 {
     ServiceRemoved?.Invoke(this, e);
 }