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(); } } } }
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); } } }
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); } } }