NVelocity.Context.InternalContextAdapterImpl.InternalContextAdapterImpl C# (CSharp) Method

InternalContextAdapterImpl() public method

CTOR takes a Context and wraps it, delegating all 'data' calls to it. For support of internal contexts, it will create an InternalContextBase if need be.
public InternalContextAdapterImpl ( IContext c ) : System
c IContext
return System
        public InternalContextAdapterImpl(IContext c)
        {
            context = c;

            if (c is IInternalHousekeepingContext)
            {
                internalHousekeepingContext = (IInternalHousekeepingContext) context;
            }
            else
            {
                internalHousekeepingContext = new InternalContextBase();
            }

            IInternalEventContext internalEventContext = context as IInternalEventContext;
            if (internalEventContext != null)
            {
                this.internalEventContext = internalEventContext;
            }
        }