private static void Add(string endpointName, int value)
        {
            var chatClient = new AccumulatorServiceClient(endpointName);

            try
            {
                chatClient.Add(value);
                chatClient.Close();
            }
            catch (Exception e)
            {
                chatClient.Abort();
                throw e;
            }
        }
        private static int GetSum(string endpointName)
        {
            var chatClient = new AccumulatorServiceClient(endpointName);

            try
            {
                var result = chatClient.GetSum();
                chatClient.Close();

                return(result);
            }
            catch (Exception e)
            {
                chatClient.Abort();
                throw e;
            }
        }