public override void Run() { var model = new ExampleModel() { Identifier = Guid.NewGuid(), Action = action, }; Trace.TraceInformation("Sending to queue for {0}: '{1}'", model.Action, model.Identifier); client.Send(model).Wait(); }
public override void Run() { var model = new ExampleModel { Identifier = Guid.NewGuid(), Action = "Buffered", }; Trace.TraceInformation("Sending to queue for {0}: '{1}'", model.Action, model.Identifier); client.SendBuffered(model, DateTime.UtcNow.AddSeconds(20)).Wait(); }