public ControlClientChangingSecurity() { // Authenticate with a user that has the VIEW_SECURITY and MODIFY_SECURITY permissions. var session = Diffusion.Sessions.Principal("admin").Password("password") // Use a secure channel because we're transferring sensitive information. .Open("wss://diffusion.example.com:8443"); securityControl = session.GetSecurityControlFeature(); }
/// <summary> /// Constructor. /// </summary> /// <param name="securityControl">The security control object.</param> /// <param name="callback">The callback object.</param> public CapitalizeRoles(ISecurityControl securityControl, IUpdateStoreCallback callback) { theSecurityControl = securityControl; theCallback = callback; }