public ServiceArgs(ServiceOperation operation, string usn, Service service)
 {
     this.operation = operation;
     this.usn = usn;
     this.service = service;
 }
 public ServiceArgs(ServiceOperation operation, Service service)
     : this(operation, service.Usn, service)
 {
 }
Example #3
0
 protected virtual void OnServiceUpdated (Service service)
 {
     var handler = ServiceUpdated;
     if (handler != null) {
         handler (this, new ServiceArgs (ServiceOperation.Updated, service));
     }
 }
Example #4
0
 internal void CacheServiceUpdated (Service service)
 {
     OnServiceUpdated (service);
 }
Example #5
0
 internal void CacheServiceAdded (Service service)
 {
     OnServiceAdded (service);
 }
Example #6
0
 protected virtual void OnServiceUpdated(Service service)
 {
     EventHandler<ServiceArgs> handler = service_updated;
     if (handler != null) {
         handler (this, new ServiceArgs (ServiceOperation.Updated, service));
     }
 }