コード例 #1
0
ファイル: Program.cs プロジェクト: kbochenina/Kraken
        static void ReturnTicket()
        {
            using (var packageInstallationClient =
                new ServiceProxies.PackageInstallationService.ResultForTicketServiceClient(new BasicHttpBinding(), new EndpointAddress("http://localhost:8755/PackageInstallationService/ResultForTicket")))
            {
                var ticketResult = new TicketResult()
                {
                    TicketId = "assssd",
                    IsSuccessful = true,
                    OccuredException = new Exception("dddsssss"),
                };

                packageInstallationClient.ReportResult(ticketResult);
            }
        }
コード例 #2
0
        static void ReturnTicket()
        {
            using (var packageInstallationClient =
                       new ServiceProxies.PackageInstallationService.ResultForTicketServiceClient(new BasicHttpBinding(), new EndpointAddress("http://localhost:8755/PackageInstallationService/ResultForTicket")))
            {
                var ticketResult = new TicketResult()
                {
                    TicketId         = "assssd",
                    IsSuccessful     = true,
                    OccuredException = new Exception("dddsssss"),
                };

                packageInstallationClient.ReportResult(ticketResult);
            }
        }