- public delegate void ServiceInfoHandler (object o, ServiceInfo info);
-
- public class ServiceBrowser : IDisposable
+ public class ServiceInfoArgs : EventArgs
+ {
+ private ServiceInfo service;
+
+ public ServiceInfo Service {
+ get { return service; }
+ }
+
+ public ServiceInfoArgs (ServiceInfo service)
+ {
+ this.service = service;
+ }
+ }
+
+ public delegate void ServiceInfoHandler (object o, ServiceInfoArgs args);
+
+ public class ServiceBrowser : BrowserBase, IDisposable