Exemplo n.º 1
0
 public DiffusionRC(string url, string controlTopic, string rootTopic)
 {
     theRemoteService = RemoteServiceFactory.CreateRemoteService(ConnectionFactory.CreateServerDetails(url),controlTopic,rootTopic);
     theRemoteService.Registered += Registered;
     theRemoteService.ClientConnected += clientConnected;
     theRemoteService.ClientDisconnected += clientDisconnected;
     theRemoteService.ClientSubscribe += clientSubscribe;
     theRemoteService.Closed += closed;
     theRemoteService.MessageFromClient += messageFromClient;
     theRemoteService.RegisterFailed += RegisterFailed;
     theRemoteService.TopicAddFailed += TopicAddFailed;
     theRemoteService.TopicSubscribeFailed += TopicSubscribeFailed;
     theRemoteService.Register();
 }