示例#1
0
 public ChangeSuperusersToAdministrators(
     ISystemAuthenticationControl systemAuthenticationControl,
     IUpdateStoreCallback callback)
 {
     theSystemAuthenticationControl = systemAuthenticationControl;
     theCallback = callback;
 }
示例#2
0
        public ControlClientChangingSystemAuthentication()
        {
            // Authenticate with a user that has the VIEW_SECURITY and MODIFY_SECURITY permissions
            var session = Diffusion.Sessions.Principal("control").Password("password")
                          // Use a secure channel because we're transferring sensitive information.
                          .Open("wss://localhost:8443");

            theSystemAuthenticationControl = session.GetSystemAuthenticationControlFeature();
        }
        public ControlClientChangingSystemAuthentication()
        {
            // Authenticate with a user that has the VIEW_SECURITY and MODIFY_SECURITY permissions
            var session = Diffusion.Sessions.Principal( "control" ).Password( "password" )
                // Use a secure channel because we're transferring sensitive information.
                .Open( "wss://localhost:8443" );

            theSystemAuthenticationControl = session.GetSystemAuthenticationControlFeature();
        }
 public ChangeSuperusersToAdministrators( ISystemAuthenticationControl systemAuthenticationControl,
     IUpdateStoreCallback callback )
 {
     theSystemAuthenticationControl = systemAuthenticationControl;
     theCallback = callback;
 }