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

            s_contextBootstrapper = appContextBootstrapper;
        }