/// <summary>
        /// Retrieves the data.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <returns></returns>
        public async Task <AuthorizationCode> GetAsync(string key)
        {
            var result = await _bucket.GetAsync <AuthorizationCodeWrapper>(AuthorizationCodeWrapper.AuthorizationCodeId(key));

            return(result.Success ? result.Value.Model : null);
        }
 /// <summary>
 /// Removes the data.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <returns></returns>
 public Task RemoveAsync(string key)
 {
     return(_bucket.RemoveAsync(AuthorizationCodeWrapper.AuthorizationCodeId(key)));
 }
 /// <summary>
 /// Stores the data.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public Task StoreAsync(string key, AuthorizationCode value)
 {
     return(_bucket.InsertAsync(AuthorizationCodeWrapper.AuthorizationCodeId(key), new AuthorizationCodeWrapper(key, value)));
 }