public Container(IContainer root, IContractsRegistry registry) { Root = root ?? throw new ArgumentNullException(nameof(root)); _contractRegistry = registry ?? throw new ArgumentNullException(nameof(registry)); Scope = new Scope(registry); }
public EventStoreSubscriptions WithContractsRegistry(IContractsRegistry registry) { _contractRegistry = registry; return(this); }
public Scope(IScope root, IContractsRegistry contractsRegistry) { Root = root ?? throw new ArgumentNullException(nameof(root)); ContractsRegistry = contractsRegistry ?? throw new ArgumentNullException(nameof(contractsRegistry)); }
public Resolver(IScope scope, IContractsRegistry registry) { Scope = scope ?? throw new ArgumentNullException(nameof(scope)); Registry = registry ?? throw new ArgumentNullException(nameof(registry)); _resolvingContext = new ResolvingContext(this); }
public Scope(IContractsRegistry contractsRegistry) { ContractsRegistry = contractsRegistry ?? throw new ArgumentNullException(nameof(contractsRegistry)); Root = this; }