コード例 #1
0
ファイル: Program.cs プロジェクト: pushtechnology/cloud
 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();
 }