Пример #1
0
 public Container(IContainer root, IContractsRegistry registry)
 {
     Root = root ?? throw new ArgumentNullException(nameof(root));
     _contractRegistry = registry ?? throw new ArgumentNullException(nameof(registry));
     Scope             = new Scope(registry);
 }
Пример #2
0
 public EventStoreSubscriptions WithContractsRegistry(IContractsRegistry registry)
 {
     _contractRegistry = registry;
     return(this);
 }
Пример #3
0
 public Scope(IScope root, IContractsRegistry contractsRegistry)
 {
     Root = root ?? throw new ArgumentNullException(nameof(root));
     ContractsRegistry = contractsRegistry ?? throw new ArgumentNullException(nameof(contractsRegistry));
 }
Пример #4
0
 public Resolver(IScope scope, IContractsRegistry registry)
 {
     Scope             = scope ?? throw new ArgumentNullException(nameof(scope));
     Registry          = registry ?? throw new ArgumentNullException(nameof(registry));
     _resolvingContext = new ResolvingContext(this);
 }
Пример #5
0
 public Scope(IContractsRegistry contractsRegistry)
 {
     ContractsRegistry = contractsRegistry ?? throw new ArgumentNullException(nameof(contractsRegistry));
     Root = this;
 }