public async Task CreateConversationAsync(string message) { using (var client = new WcfConversationServiceClient()) { await client.CreateConversationAsync(message); } }
public void CreateConversation(string message) { using (var client = new WcfConversationServiceClient()) { client.CreateConversation(message); } }
static void Main(string[] args) { //// Add the configuration to the ConfigurationBuilder. //var config = new ConfigurationBuilder(); //config.AddJsonFile("autofac.json"); //// Register the ConfigurationModule with Autofac. //var module = new ConfigurationModule(config.Build()); //var builder = new ContainerBuilder(); //builder.RegisterModule(module); //Container = builder.Build(); //WriteDate(); using (var client = new WcfConversationServiceClient("NetTcpBinding_IWcfConversationService")) { client.CreateConversation("1251"); } Console.ReadKey(true); }