예제 #1
0
파일: Program.cs 프로젝트: NetCoreStack/Wcf
        private static void ThrowException()
        {
            GuidelineServiceReference.GuidelineServiceClient client = new GuidelineServiceReference.GuidelineServiceClient();
            var serviceResult = client.ThrowException();

            Console.ReadLine();
        }
예제 #2
0
파일: Program.cs 프로젝트: NetCoreStack/Wcf
        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
파일: Program.cs 프로젝트: NetCoreStack/Wcf
        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();
        }