示例#1
0
        public ResultSrv <ServiceCallResultSrv <AIPlatformSrv <ImageProcessingAuthenticationContentSrv> > > ImageProcessingAuthentication()
        {
            try
            {
                var output = new ResultSrv <ServiceCallResultSrv <AIPlatformSrv <ImageProcessingAuthenticationContentSrv> > >();

                var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder
                                            .SetToken("")
                                            .SetScApiKey("")
                                            //.SetScVoucherHash()
                                            .Build();

                var imageProcessingAuthenticationVo = ImageProcessingAuthenticationVo.ConcreteBuilder
                                                      .SetServiceCallParameters(internalServiceCallVo)
                                                      .SetImage1("")
                                                      .SetImage2("")
                                                      .SetMode(ImageComparisonMode.Easy)
                                                      .Build();
                AIService.ImageProcessingAuthentication(imageProcessingAuthenticationVo, response => Listener.GetResult(response, out output));
                return(output);
            }
            catch (PodException podException)
            {
                Console.WriteLine(
                    $"-- {podException.Code}-an error has occured : {Environment.NewLine}{podException.Message}");
                throw;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.Message);
                throw;
            }
        }