Example #1
0
        //Rpc
        public async Task <AuthenticateResponse> SendAuthenticateAsync(RequestOptions options = null)
        {
            var msg = new AuthenticateParams
            {
                AccessToken = _authToken
            };

            return(await SendRpcAsync <AuthenticateResponse>("AUTHENTICATE", msg, ignoreState : true, options : options).ConfigureAwait(false));
        }
        //Rpc
        public async Task <AuthenticateResponse> SendAuthenticateAsync(RequestOptions options = null)
        {
            options = RequestOptions.CreateOrClone(options);
            var msg = new AuthenticateParams
            {
                AccessToken = AuthToken
            };

            options.IgnoreState = true;
            return(await SendRpcAsync <AuthenticateResponse>("AUTHENTICATE", msg, options : options).ConfigureAwait(false));
        }