static void Main(string[] args) { try { var correlationId = "123"; var config = ConfigParams.FromTuples( "connection.type", "http", "connection.host", "localhost", "connection.port", 8080 ); var client = new EmailHttpClientV1(); var parameters = ConfigParams.FromTuples( "subject", "Test Email To Address", "text", "This is just a test" ); client.Configure(config); client.OpenAsync(correlationId); client.SendMessageAsync(correlationId, new EmailMessageV1() { To = "*****@*****.**", Subject = "subject", Text = "text" }, parameters); Console.WriteLine("Message send"); Console.WriteLine("Press ENTER to exit..."); Console.ReadLine(); client.CloseAsync(string.Empty); } catch (Exception ex) { Console.WriteLine(ex); } }
public EmailHttpClientV1Test() { _client = new EmailHttpClientV1(); _client.Configure(HttpConfig); _fixture = new EmailClientFixtureV1(_client); _client.OpenAsync(null); }