Castle.MicroKernel.Lifestyle.LifetimeScopeAccessor.GetScope C# (CSharp) Method

GetScope() public method

public GetScope ( CreationContext context ) : ILifetimeScope
context Castle.MicroKernel.Context.CreationContext
return ILifetimeScope
		public ILifetimeScope GetScope(CreationContext context)
		{
			var scope = Scope.ObtainCurrentScope();
			if (scope == null)
			{
				throw new InvalidOperationException("Scope was not available. Did you forget to call container.BeginScope()?");
			}
			return scope;
		}
	}
LifetimeScopeAccessor