예제 #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public void Out(string pType, IFabricClientConfig pConfig, string pText)
        {
            IFabricSessionContainer sc = pConfig.GetSessionContainer();
            IFabricPersonSession    p  = (sc != null ? sc.Person : null);
            string psId = (p == null ? Empty32 : p.SessionId);

            Console.WriteLine("Fabric | " + pType.PadRight(5) + " | " + psId + " | " + pText);
        }
예제 #2
0
        public void PersonSess()
        {
            IFabricPersonSession ps0 = vContext.PersonSess;
            IFabricPersonSession ps1 = vContext.PersonSess;

            Assert.AreEqual(1, vSessProvCounter, "Incorrect Session Provider count.");
            Assert.AreEqual(ps0, ps1, "Expected the same provider object.");
        }
예제 #3
0
 /*--------------------------------------------------------------------------------------------*/
 /// <summary />
 public FabricClient(IFabricPersonSession personSess, string configKey) : this(configKey) {
     Context.PersonSess = personSess;
 }
예제 #4
0
 /*--------------------------------------------------------------------------------------------*/
 /// <summary />
 public FabricClient(IFabricPersonSession personSess) : this(personSess, DefaultConfigKey)
 {
 }