2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-06-27 06:43:13 +00:00
This commit is contained in:
2019-08-08 22:02:31 +03:00
parent 1bf0bc32ae
commit 1f76327ced
6 changed files with 259 additions and 66 deletions

View File

@ -54,7 +54,7 @@ class Warehouse
//public static event StoreConnectedEvent StoreConnected;
///public static event StoreDisconnectedEvent StoreDisconnected;
static KeyList<String, IStore Function()> protocols = getProtocols();
static KeyList<String, IStore Function()> protocols = _getSupportedProtocols();
/// <summary>
/// Get a store by its name.
@ -448,11 +448,13 @@ class Warehouse
return true;
}
static KeyList<String, IStore Function()> _getSupportedProtocols()
{
var rt = new KeyList<String, IStore Function()>();
rt.add("iip", () => new DistributedConnection());
return rt;
}
}
KeyList<String, IStore Function()> getProtocols()
{
var rt = new KeyList<String, IStore Function()>();
rt.add("iip", () => new DistributedConnection());
return rt;
}