Пример #1
0
        private static void ThrowException()
        {
            GuidelineServiceReference.GuidelineServiceClient client = new GuidelineServiceReference.GuidelineServiceClient();
            var serviceResult = client.ThrowException();

            Console.ReadLine();
        }
Пример #2
0
        private static void CallRefTypeParameterOperation()
        {
            GuidelineServiceReference.GuidelineServiceClient client = new GuidelineServiceReference.GuidelineServiceClient();
            var serviceResult = client.RefTypeParameter(new CompositeType {
            });

            Console.WriteLine(serviceResult.Result.Echo);
            Console.ReadLine();
        }
Пример #3
0
        private static void CallLoggedMethod()
        {
            GuidelineServiceReference.GuidelineServiceClient client = new GuidelineServiceReference.GuidelineServiceClient();
            var serviceResult = client.LoggedServiceMethod(new CompositeType {
                BoolValue = true, Echo = "Echo client", StringValue = "Some string value!"
            });

            Console.WriteLine(serviceResult.Result);
            Console.ReadLine();
        }