public LocalContextSecurityUser(ISecurityUser newUser, ISecurityUser restoreUser, AppContextBootstrapper appContextBootstrapper) { _restoreUser = restoreUser; _appContextBootstrapper = appContextBootstrapper; _appContextBootstrapper.RemoveSecurityUser(); _appContextBootstrapper.SetSecurityUser(newUser); }
internal static void SetContextService(AppContextBootstrapper appContextBootstrapper) { if (appContextBootstrapper == null) throw new ArgumentNullException("appContextBootstrapper"); s_contextBootstrapper = appContextBootstrapper; }