示例#1
0
 static ReqrepManager() {
   SenderFactory.Register("replystate", LookupReplyStateByUri);
   _inst_tab_sync = new object();
   lock(_inst_tab_sync) {
     _instance_table = new WeakValueTable<string, ReqrepManager>();
   } 
 }
示例#2
0
 static ReqrepManager()
 {
     SenderFactory.Register("replystate", LookupReplyStateByUri);
     _inst_tab_sync = new object();
     lock (_inst_tab_sync) {
         _instance_table = new WeakValueTable <string, ReqrepManager>();
     }
 }
示例#3
0
 static TransportAddressFactory()
 {
     _string_to_type = new Dictionary <string, TransportAddress.TAType>();
     _ta_cache       = new WeakValueTable <string, TransportAddress>();
     _ta_factories   = new Dictionary <string, Converter <string, TransportAddress> >();
     AddFactoryMethod("tcp", IPTransportAddress.Create);
     AddFactoryMethod("udp", IPTransportAddress.Create);
     AddFactoryMethod("function", IPTransportAddress.Create);
     AddFactoryMethod("tls", IPTransportAddress.Create);
     AddFactoryMethod("tlstest", IPTransportAddress.Create);
 }
示例#4
0
 static TransportAddressFactory()
 {
     _string_to_type = new Dictionary <string, TransportAddress.TAType>();
     _ta_cache       = new WeakValueTable <string, TransportAddress>();
     _ta_factories   = new Dictionary <string, Converter <string, TransportAddress> >();
     AddFactoryMethod("tcp", IPTransportAddress.Create);
     AddFactoryMethod("udp", IPTransportAddress.Create);
     AddFactoryMethod("function", IPTransportAddress.Create);
     AddFactoryMethod("tls", IPTransportAddress.Create);
     AddFactoryMethod("tlstest", IPTransportAddress.Create);
     //Here's the odd ball:
     AddFactoryMethod("s", delegate(string s) {
         return(new SimulationTransportAddress(s));
     });
 }
示例#5
0
 static AddressParser() {
   _cache = new WeakValueTable<int, Address>();
 }
示例#6
0
 static AddressParser()
 {
     _cache = new WeakValueTable <int, Address>();
 }
示例#7
0
 static TransportAddressFactory() {
   _string_to_type = new Dictionary<string,TransportAddress.TAType>();
   _ta_cache = new WeakValueTable<string, TransportAddress>();
   _ta_factories = new Dictionary<string,Converter<string,TransportAddress>>();
   AddFactoryMethod("tcp", IPTransportAddress.Create);
   AddFactoryMethod("udp", IPTransportAddress.Create);
   AddFactoryMethod("function", IPTransportAddress.Create);
   AddFactoryMethod("tls", IPTransportAddress.Create);
   AddFactoryMethod("tlstest", IPTransportAddress.Create);
   //Here's the odd ball:
   AddFactoryMethod("s", delegate(string s) {
     return new SimulationTransportAddress(s);
   });
 }
示例#8
0
 static NodeInfo()
 {
     _cache     = new WeakValueTable <int, NodeInfo>();
     _cache_key = new NodeInfo();
     _ta_list   = new TransportAddress[1];
 }
示例#9
0
 static TransportAddressFactory() {
   _string_to_type = new Dictionary<string,TransportAddress.TAType>();
   _ta_cache = new WeakValueTable<string, TransportAddress>();
   _ta_factories = new Dictionary<string,Converter<string,TransportAddress>>();
   AddFactoryMethod("tcp", IPTransportAddress.Create);
   AddFactoryMethod("udp", IPTransportAddress.Create);
   AddFactoryMethod("function", IPTransportAddress.Create);
   AddFactoryMethod("tls", IPTransportAddress.Create);
   AddFactoryMethod("tlstest", IPTransportAddress.Create);
 }
示例#10
0
 static NodeInfo()
 {
   _cache = new WeakValueTable<int, NodeInfo>();
   _cache_key = new NodeInfo();
   _ta_list = new TransportAddress[1];
 }