static ReqrepManager() { SenderFactory.Register("replystate", LookupReplyStateByUri); _inst_tab_sync = new object(); lock(_inst_tab_sync) { _instance_table = new WeakValueTable<string, ReqrepManager>(); } }
static ReqrepManager() { SenderFactory.Register("replystate", LookupReplyStateByUri); _inst_tab_sync = new object(); lock (_inst_tab_sync) { _instance_table = new WeakValueTable <string, ReqrepManager>(); } }
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); }
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)); }); }
static AddressParser() { _cache = new WeakValueTable<int, Address>(); }
static AddressParser() { _cache = new WeakValueTable <int, Address>(); }
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); }); }
static NodeInfo() { _cache = new WeakValueTable <int, NodeInfo>(); _cache_key = new NodeInfo(); _ta_list = new TransportAddress[1]; }
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); }
static NodeInfo() { _cache = new WeakValueTable<int, NodeInfo>(); _cache_key = new NodeInfo(); _ta_list = new TransportAddress[1]; }