Exemplo n.º 1
0
 public bool CheckIfRealPerson(Player player)
 {
     MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
     return(client.TCKimlikNoDogrulaAsync(
                new TCKimlikNoDogrulaRequest
                    (new TCKimlikNoDogrulaRequestBody(player.NationalityId, player.FirstName.ToUpper(), player.LastName.ToUpper(), player.DateOfBirth.Year)))
            .Result.Body.TCKimlikNoDogrulaResult);
 }
Exemplo n.º 2
0
 public KPSPublicSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(KPSPublicSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemplo n.º 3
0
 public KPSPublicSoapClient(EndpointConfiguration endpointConfiguration) :
     base(KPSPublicSoapClient.GetBindingForEndpoint(endpointConfiguration), KPSPublicSoapClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemplo n.º 4
0
 public bool CheckIfRealPerson(Customer customer)
 {
     MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient();
     return(client.TCKimlikNoDogrulaAsync(customer.NationalityId, customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth.Year));
 }