コード例 #1
0
ファイル: ReqrepManager.cs プロジェクト: pstjuste/brunet
 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
ファイル: AddressParser.cs プロジェクト: pstjuste/brunet
 static AddressParser() {
   _cache = new WeakValueTable<int, Address>();
 }
コード例 #6
0
 static AddressParser()
 {
     _cache = new WeakValueTable <int, Address>();
 }
コード例 #7
0
ファイル: TransportAddress.cs プロジェクト: hseom/brunet
 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
ファイル: NodeInfo.cs プロジェクト: ikaragkiozoglou/brunet
 static NodeInfo()
 {
     _cache     = new WeakValueTable <int, NodeInfo>();
     _cache_key = new NodeInfo();
     _ta_list   = new TransportAddress[1];
 }
コード例 #9
0
ファイル: TransportAddress.cs プロジェクト: pstjuste/brunet
 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
ファイル: NodeInfo.cs プロジェクト: pstjuste/brunet
 static NodeInfo()
 {
   _cache = new WeakValueTable<int, NodeInfo>();
   _cache_key = new NodeInfo();
   _ta_list = new TransportAddress[1];
 }