public void Dispose() { if (FSGlobalContext != null) { FSGlobalContext.CloseConnection(); FSGlobalFactory.Put(FSGlobalContext); } }
public void Dispose() { if (_global != null) { _global.CloseConnection(); FSGlobalFactory.Put(_global); _global = null; } }
public static bool Authenticate(NVIdentity identity) { var global = FSGlobalFactory.Get(identity); if (global != null) { identity.IsAuthenticated = true; FSGlobalFactory.Put(global); return(true); } return(false); }