public AnyMiddleware( ServiceProviderOnlyScopedDisposable serviceProviderOnlyScopedDisposable, WindsorOnlyScopedDisposable windsorOnlyScopedDisposable, CrossWiredScopedDisposable crossWiredScopedDisposable) { this.serviceProviderOnlyScopedDisposable = serviceProviderOnlyScopedDisposable ?? throw new ArgumentNullException(nameof(serviceProviderOnlyScopedDisposable)); this.windsorOnlyScopedDisposable = windsorOnlyScopedDisposable ?? throw new ArgumentNullException(nameof(windsorOnlyScopedDisposable)); this.crossWiredScopedDisposable = crossWiredScopedDisposable ?? throw new ArgumentNullException(nameof(crossWiredScopedDisposable)); }
public ViewComponentCrossWired ( CrossWiredTransient CrossWiredTransient1, CrossWiredTransientGeneric <OpenOptions> CrossWiredTransient2, CrossWiredTransientGeneric <ClosedOptions> CrossWiredTransient3, CrossWiredTransientDisposable CrossWiredTransient4, CrossWiredScoped CrossWiredScoped1, CrossWiredScopedGeneric <OpenOptions> CrossWiredScoped2, CrossWiredScopedGeneric <ClosedOptions> CrossWiredScoped3, CrossWiredScopedDisposable CrossWiredScoped4, CrossWiredSingleton CrossWiredSingleton1, CrossWiredSingletonGeneric <OpenOptions> CrossWiredSingleton2, CrossWiredSingletonGeneric <ClosedOptions> CrossWiredSingleton3, CrossWiredSingletonDisposable CrossWiredSingleton4) { if (CrossWiredTransient1 == null) { throw new ArgumentException(nameof(CrossWiredTransient1)); } if (CrossWiredTransient2 == null) { throw new ArgumentException(nameof(CrossWiredTransient2)); } if (CrossWiredTransient3 == null) { throw new ArgumentException(nameof(CrossWiredTransient3)); } if (CrossWiredTransient4 == null) { throw new ArgumentException(nameof(CrossWiredTransient4)); } if (CrossWiredScoped1 == null) { throw new ArgumentException(nameof(CrossWiredScoped1)); } if (CrossWiredScoped2 == null) { throw new ArgumentException(nameof(CrossWiredScoped2)); } if (CrossWiredScoped3 == null) { throw new ArgumentException(nameof(CrossWiredScoped3)); } if (CrossWiredScoped4 == null) { throw new ArgumentException(nameof(CrossWiredScoped4)); } if (CrossWiredSingleton1 == null) { throw new ArgumentException(nameof(CrossWiredSingleton1)); } if (CrossWiredSingleton2 == null) { throw new ArgumentException(nameof(CrossWiredSingleton2)); } if (CrossWiredSingleton3 == null) { throw new ArgumentException(nameof(CrossWiredSingleton3)); } if (CrossWiredSingleton4 == null) { throw new ArgumentException(nameof(CrossWiredSingleton4)); } }