public override async Task RunAsync(ApiClientCustomerSetActivatedContext context) { await ExecuteNonQueryAsync(context); Service.CacheRemove(context); // return ExecuteNonQueryAsync(context, Func<ApiClientCustomerSetActivatedRequest, string> keySpecifier); }
public override void Run(ApiClientCustomerSetActivatedContext context) { ExecuteNonQuery(context); Service.CacheRemove(context); // ExecuteNonQuery(context, Func<ApiClientCustomerSetActivatedRequest, string> keySpecifier); }
public void CacheRemove(ApiClientCustomerSetActivatedContext context) { if (context.Response.Success && UseCache) { Cache.Remove(context.Response.AccessToken); Cache.Remove(context.Request.Id.ToString()); } }