Exemple #1
0
 public void Put(string name, Action <IPutWriter> action)
 {
     if (!string.IsNullOrEmpty(name))
     {
         using (IDbConnection connectin = EnsureConnection())
         {
             using (PutItemBuilder builder = new PutItemBuilder(connectin, name))
             {
                 action(builder);
                 builder.Complete();
             }
         }
     }
 }
Exemple #2
0
        public void Put(string name, Action <IPutWriter> action)
        {
            if (!string.IsNullOrEmpty(name))
            {
                PutItemBuilder builder = new PutItemBuilder(_domainName, name);

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

                if (!builder.IsEmpty)
                {
                    _service.ExecuteWithExpectation(builder);
                }
            }
        }
Exemple #3
0
        public void Put(string name, Action<IPutWriter> action)
        {
            if (!string.IsNullOrEmpty(name))
            {
                PutItemBuilder builder = new PutItemBuilder(_domainName, name);

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

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