Exemplo n.º 1
0
 public ServiceManager(ObjectBus objectBus)
 {
     if (objectBus == null)
         throw new ArgumentNullException ("objectBus");
     this.objectBus = objectBus;
     objectBus.RegisterType (typeof(ServiceAnnounceMessage), ServiceAnnouncementReceived);
     objectBus.RegisterType (typeof(ServiceResponseMessage), ServiceResponseReceived);
     objectBus.RegisterType (typeof(ServiceRequestMessage), ServiceRequestReceived);
     objectBus.RegisterType (typeof(ServiceDestroyMessage), ServiceDestroyReceived);
     objectBus.RegisterType (typeof(ServiceManagerReadyMessage), ServiceManagerReadyMessageReceived);
     objectBus.Start ();
 }