implement Optional Eventing in InMemory Stores for Push and WebRTC Connections and also Groups ...
This commit is contained in:
@@ -261,7 +261,8 @@ namespace xPushService.DI
|
||||
{
|
||||
//
|
||||
Log($"there is no provided PushGroupStore, try to register XPushGroupInMemoryStore ...");
|
||||
groupStore = new XPushGroupInMemoryStore();
|
||||
var storeEvents = services.GetRegisteredService<IXPushGroupStoreEvents>();
|
||||
groupStore = new XPushGroupInMemoryStore(storeEvents);
|
||||
services.AddSingleton<IXPushGroupStore>(groupStore);
|
||||
}
|
||||
|
||||
@@ -271,7 +272,8 @@ namespace xPushService.DI
|
||||
{
|
||||
//
|
||||
Log($"there is no provided XPushConnectionStore, try to register XPushConnectionInMemoryStore ...");
|
||||
connectionStore = new XPushConnectionInMemoryStore();
|
||||
var storeEvents = services.GetRegisteredService<IXPushConnectionStoreEvents>();
|
||||
connectionStore = new XPushConnectionInMemoryStore(storeEvents);
|
||||
services.AddSingleton<IXPushConnectionStore>(connectionStore);
|
||||
}
|
||||
|
||||
@@ -281,7 +283,8 @@ namespace xPushService.DI
|
||||
{
|
||||
//
|
||||
Log($"there is no provided XWebRTCConnectionStore, try to register XWebRTCConnectionInMemoryStore ...");
|
||||
webRtcConnectionStore = new XWebRTCConnectionInMemoryStore();
|
||||
var storeEvents = services.GetRegisteredService<IXWebRTCConnectionStoreEvents>();
|
||||
webRtcConnectionStore = new XWebRTCConnectionInMemoryStore(storeEvents);
|
||||
services.AddSingleton<IXWebRTCConnectionStore>(webRtcConnectionStore);
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user