Esempio n. 1
0
 public void Delete(string name, Action <IDeleteWriter> action)
 {
     if (!string.IsNullOrEmpty(name))
     {
         using (IDbConnection connection = EnsureConnection())
         {
             using (DeleteItemBuilder builder = new DeleteItemBuilder(connection, name))
             {
                 action(builder);
                 builder.Complete();
             }
         }
     }
 }
Esempio n. 2
0
        public void Delete(string name, Action <IDeleteWriter> action)
        {
            if (!string.IsNullOrEmpty(name))
            {
                DeleteItemBuilder builder = new DeleteItemBuilder(_domainName, name);

                if (action != null)
                {
                    action(builder);
                }

                if (!builder.IsEmpty)
                {
                    _service.ExecuteWithExpectation(builder);
                }
            }
        }
Esempio n. 3
0
        public void Delete(string name, Action<IDeleteWriter> action)
        {
            if (!string.IsNullOrEmpty(name))
            {
                DeleteItemBuilder builder = new DeleteItemBuilder(_domainName, name);

                if (action != null)
                {
                    action(builder);
                }

                if (!builder.IsEmpty)
                {
                    _service.ExecuteWithExpectation(builder);
                }
            }
        }