Castle.MicroKernel.Context.CreationContext.CreationContext C# (CSharp) Méthode

CreationContext() public méthode

Initializes a new instance of the CreationContext class.
public CreationContext ( IHandler handler, IReleasePolicy releasePolicy, Type requestedType, IDictionary additionalArguments, ITypeConverter converter, CreationContext parent ) : System
handler IHandler The handler.
releasePolicy IReleasePolicy The release policy.
requestedType System.Type The type to extract generic arguments.
additionalArguments IDictionary The additional arguments.
converter ITypeConverter The conversion manager.
parent CreationContext Parent context
Résultat System
		public CreationContext(IHandler handler, IReleasePolicy releasePolicy, Type requestedType,
		                       IDictionary additionalArguments, ITypeConverter converter,
		                       CreationContext parent)
		{
			this.requestedType = requestedType;
			this.handler = handler;
			ReleasePolicy = releasePolicy;
			this.additionalArguments = EnsureAdditionalArgumentsWriteable(additionalArguments);
			this.converter = converter;

			if (parent != null)
			{
				resolutionStack = parent.resolutionStack;
				handlerStack = parent.handlerStack;
				return;
			}
			handlerStack = new Stack<IHandler>(4);
			resolutionStack = new Stack<ResolutionContext>(4);
		}

Same methods

CreationContext::CreationContext ( ) : System
CreationContext::CreationContext ( Type requestedType, CreationContext parentContext, bool propagateInlineDependencies ) : System