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