//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ 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); }
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."); }
/*--------------------------------------------------------------------------------------------*/ /// <summary /> public FabricClient(IFabricPersonSession personSess, string configKey) : this(configKey) { Context.PersonSess = personSess; }
/*--------------------------------------------------------------------------------------------*/ /// <summary /> public FabricClient(IFabricPersonSession personSess) : this(personSess, DefaultConfigKey) { }