Exemple #1
0
 public async Task CreateConversationAsync(string message)
 {
     using (var client = new WcfConversationServiceClient())
     {
         await client.CreateConversationAsync(message);
     }
 }
Exemple #2
0
 public void CreateConversation(string message)
 {
     using (var client = new WcfConversationServiceClient())
     {
         client.CreateConversation(message);
     }
 }
Exemple #3
0
        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);
        }