Exemplo n.º 1
0
        public override void Run(ApiClientDeleteByKeyContext context)
        {
            // Initialize(context);

            ExecuteNonQuery(context);
            // ExecuteNonQuery(context, Func<ApiClientDeleteByKeyRequest, string> keySpecifier);

            Finalize(context);
        }
 public void CacheRemove(ApiClientDeleteByKeyContext context)
 {
     if (UseCache && context.Response.Success && context.Response.Status != ApiClientDeleteByKeyStatus.NotFound)
     {
         Cache.Remove(context.Request.ClientKey);
         Cache.Remove(context.Response.Id.ToString());
         InvalidateRequests();
     }
 }
Exemplo n.º 3
0
        public override async Task RunAsync(ApiClientDeleteByKeyContext context)
        {
            // Initialize(context);

            await ExecuteNonQueryAsync(context);

            // return ExecuteNonQueryAsync(context, Func<ApiClientDeleteByKeyRequest, string> keySpecifier);

            Finalize(context);
        }
Exemplo n.º 4
0
 private void Finalize(ApiClientDeleteByKeyContext context)
 {
     Service.CacheRemove(context);
 }
Exemplo n.º 5
0
 private void Initialize(ApiClientDeleteByKeyContext context)
 {
 }