public ContextWrapperDependencyResolution(IContextualStorageStrategy contextualStorageStrategy, IDependencyResolution innerDependencyResolution)
			: base(DependencyLifetime.Singleton)
		{
			if ((object)contextualStorageStrategy == null)
				throw new ArgumentNullException(nameof(contextualStorageStrategy));

			if ((object)innerDependencyResolution == null)
				throw new ArgumentNullException(nameof(innerDependencyResolution));

			this.contextualStorageStrategy = contextualStorageStrategy;
			this.innerDependencyResolution = innerDependencyResolution;
		}
Exemplo n.º 2
0
        public ContextWrapperDependencyResolution(IContextualStorageStrategy contextualStorageStrategy, IDependencyResolution innerDependencyResolution)
            : base(DependencyLifetime.Singleton)
        {
            if ((object)contextualStorageStrategy == null)
            {
                throw new ArgumentNullException(nameof(contextualStorageStrategy));
            }

            if ((object)innerDependencyResolution == null)
            {
                throw new ArgumentNullException(nameof(innerDependencyResolution));
            }

            this.contextualStorageStrategy = contextualStorageStrategy;
            this.innerDependencyResolution = innerDependencyResolution;
        }