Пример #1
0
 /// <summary>
 /// Adds newly registered global dependencies to this <see cref="PiletServiceProvider"/>.
 /// </summary>
 /// <param name="globalProvider">The updated global service provider</param>
 /// <param name="globalServices">The updated global service registrations</param>
 public void Update(IServiceProvider globalProvider, IServiceCollection globalServices)
 {
     _globalProvider = globalProvider;
     _piletProvider  = PiralServiceProvider.CreatePiletServiceProvider(globalProvider, globalServices, _piletServices);
 }
Пример #2
0
 /// <summary>
 /// Constructs a new <see cref="PiletServiceProvider"/>.
 /// </summary>
 /// <param name="globalProvider">The current global service provider </param>
 /// <param name="piletServices">A collection of pilet specific service registrations.</param>
 public PiletServiceProvider(IServiceProvider globalProvider, IServiceCollection globalServices, IServiceCollection piletServices)
 {
     _piletServices  = piletServices;
     _globalProvider = globalProvider;
     _piletProvider  = PiralServiceProvider.CreatePiletServiceProvider(globalProvider, globalServices, piletServices);
 }