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