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)
 {
 }
示例#3
0
 protected virtual void OnServiceUpdated (Service service)
 {
     var handler = ServiceUpdated;
     if (handler != null) {
         handler (this, new ServiceArgs (ServiceOperation.Updated, service));
     }
 }
示例#4
0
 internal void CacheServiceUpdated (Service service)
 {
     OnServiceUpdated (service);
 }
示例#5
0
 internal void CacheServiceAdded (Service service)
 {
     OnServiceAdded (service);
 }
示例#6
0
 protected virtual void OnServiceUpdated(Service service)
 {
     EventHandler<ServiceArgs> handler = service_updated;
     if (handler != null) {
         handler (this, new ServiceArgs (ServiceOperation.Updated, service));
     }
 }