public void CacheRemove(ApiClientDeleteByPKContext context) { if (UseCache && context.Response.Success && context.Response.Status != ApiClientDeleteByPKStatus.NotFound) { Cache.Remove(context.Request.Id.ToString()); Cache.Remove(context.Response.ClientKey); InvalidateRequests(); } }
public override async Task RunAsync(ApiClientDeleteByPKContext context) { // Initialize(context); // return ExecuteNonQueryAsync(context); await ExecuteNonQueryAsync(context); Finalize(context); }
public override void Run(ApiClientDeleteByPKContext context) { // Initialize(context); // ExecuteNonQuery(context); ExecuteNonQuery(context); Finalize(context); }
private void Finalize(ApiClientDeleteByPKContext context) { Service.CacheRemove(context); }
private void Initialize(ApiClientDeleteByPKContext context) { }