public FSScope(FSGlobalContext global) { if (global == null) { throw new ArgumentNullException(nameof(global)); } FSGlobalContext = FSGlobalFactory.Get(global.Identity); }
public static bool Authenticate(NVIdentity identity) { var global = FSGlobalFactory.Get(identity); if (global != null) { identity.IsAuthenticated = true; FSGlobalFactory.Put(global); return(true); } return(false); }
//private readonly Func<FSGlobal, T> _factory; public FSDataContext(INVIdentityProvider provider) { _global = FSGlobalFactory.Get(provider.Get); }
public FSScope(NVIdentity identity) { FSGlobalContext = FSGlobalFactory.Get(identity); }