last ...
This commit is contained in:
@@ -17,4 +17,27 @@
|
||||
//
|
||||
var sS = services.GetXKeyedService<XServicesConfiguration>(sServiceConfig.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);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user