last ...
This commit is contained in:
@@ -17,4 +17,27 @@
|
|||||||
//
|
//
|
||||||
var sS = services.GetXKeyedService<XServicesConfiguration>(sServiceConfig.Name);
|
var sS = services.GetXKeyedService<XServicesConfiguration>(sServiceConfig.Name);
|
||||||
var defS = services.GetXKeyedService<XServicesConfiguration>(defServiceConfig.Name);
|
var defS = services.GetXKeyedService<XServicesConfiguration>(defServiceConfig.Name);
|
||||||
|
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
var dConf = new XServicesConfiguration();
|
||||||
|
var sConf = new XServicesConfiguration
|
||||||
|
{
|
||||||
|
Name = "SaherElm"
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
services.AddXKeyedService(
|
||||||
|
key: dConf.Name,
|
||||||
|
instance: dConf
|
||||||
|
);
|
||||||
|
services.AddXKeyedService(
|
||||||
|
key: sConf.Name,
|
||||||
|
instance: sConf
|
||||||
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
var dc = services.GetXKeyedService<XServicesConfiguration>(dConf.Name);
|
||||||
|
var sc = services.GetXKeyedService<XServicesConfiguration>(sConf.Name);
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
Submodule Modules/xCommons updated: e2de55e8ef...6757b2eaf6
+1
-1
Submodule Modules/xServices updated: 08cab60c36...7d91d92c70
Reference in New Issue
Block a user