RestSharp.Authenticators.OAuth.OAuthWorkflow.ValidateClientAuthAccessRequestState C# (CSharp) Method

ValidateClientAuthAccessRequestState() private method

private ValidateClientAuthAccessRequestState ( ) : void
return void
        private void ValidateClientAuthAccessRequestState()
        {
            if (AccessTokenUrl.IsNullOrBlank())
            {
                throw new ArgumentException("You must specify an access token URL");
            }

            if (ConsumerKey.IsNullOrBlank())
            {
                throw new ArgumentException("You must specify a consumer key");
            }

            if (ConsumerSecret.IsNullOrBlank())
            {
                throw new ArgumentException("You must specify a consumer secret");
            }

            if (ClientUsername.IsNullOrBlank() || ClientPassword.IsNullOrBlank())
            {
                throw new ArgumentException("You must specify user credentials");
            }
        }