/// <summary> /// Saves the new access key to state. /// </summary> /// <param name="operation">The token response object.</param> public void Execute(ContinueAccessTokenOp operation) { lock (this.lockState) { this.state.access_token = operation.ContinueAccessToken; } }
/// <summary> /// Returns the token update task. /// </summary> /// <param name="operation">Represents the parameter object for the protocol.</param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public Task ExecuteAsync(ContinueAccessTokenOp operation) { return(Task.Factory.StartNew(() => this.Execute(operation))); }