public static AppSession Create(ScopeRules with) { var logger = LogManager.GetLogger("App"); if (!with.SkipSingletonValidation && !SingletonScopeRule.Verify()) { logger.Error("Single app-user session validity check has failed"); return(null); } return(new AppSession(with, logger)); }
AppSession(ScopeRules rules, ILogger logger) { _rules = rules; _logger = logger; }