コード例 #1
0
ファイル: BaseWampHost.cs プロジェクト: yonglehou/NWamp
 /// <summary>
 /// Initializes a new instance of <see cref="BaseWampHost"/>.
 /// </summary>
 /// <param name="messageProvider">Message provider used for WAMP message JSON serialization/deserialization</param>
 /// <param name="typeResolver">Resolver used for converting deserialized JSON object into specific type instances</param>
 protected BaseWampHost(Uri listeningUri, IMessageProvider messageProvider, ITypeResolver typeResolver)
 {
     AddressUri = listeningUri;
     MessageProvider = messageProvider;
     Topics = new TopicCollection();
     ResponseQueue = new SocketResponseQueue();
     Scheduler = new ProcedureScheduler(ResponseQueue, typeResolver);
     Sessions = new DictionarySessionContainer();
     Procedures = new Dictionary<string, ProcedureDefinition>();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="BaseWampHost"/>.
 /// </summary>
 /// <param name="messageProvider">Message provider used for WAMP message JSON serialization/deserialization</param>
 /// <param name="typeResolver">Resolver used for converting deserialized JSON object into specific type instances</param>
 protected BaseWampHost(Uri listeningUri, IMessageProvider messageProvider, ITypeResolver typeResolver)
 {
     AddressUri      = listeningUri;
     MessageProvider = messageProvider;
     Topics          = new TopicCollection();
     ResponseQueue   = new SocketResponseQueue();
     Scheduler       = new ProcedureScheduler(ResponseQueue, typeResolver);
     Sessions        = new DictionarySessionContainer();
     Procedures      = new Dictionary <string, ProcedureDefinition>();
 }