/// <summary> 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. /// </summary> public InternalContextAdapterImpl(IContext c) { context = c; if (!(c is InternalHousekeepingContext)) { icb = new InternalContextBase(); } else { icb = (InternalHousekeepingContext)context; } if (c is InternalEventContext) { iec = (InternalEventContext)context; } }
/// <summary> 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. /// </summary> public InternalContextAdapterImpl(IContext c) { context = c; if (!(c is InternalHousekeepingContext)) { icb = new InternalContextBase(); } else { icb = (InternalHousekeepingContext) context; } if (c is InternalEventContext) { iec = (InternalEventContext) context; } }