コード例 #1
0
 public ContextControllerKeyed(
     ContextManagerRealization realization,
     ContextControllerKeyedFactory factory)
     : base(realization)
 {
     this.factory = factory;
 }
コード例 #2
0
 public ContextControllerKeyedImpl(
     ContextControllerKeyedFactory factory,
     ContextManagerRealization realization)
     : base(realization, factory)
 {
     keyedSvc = ContextControllerKeyedUtil.GetService(factory, realization);
 }
コード例 #3
0
        protected internal static ContextControllerKeyedSvc GetService(
            ContextControllerKeyedFactory factory,
            ContextManagerRealization realization)
        {
            if (factory.FactoryEnv.IsRoot) {
                return new ContextControllerKeyedSvcLevelOne();
            }

            return new ContextControllerKeyedSvcLevelAny();
        }