public static PersonLookupClient Instance(WSNonceAuthenticationProvider clientAuthenticationProvider)
        {
            PersonLookupClientImpl instance = new PersonLookupClientImpl();
            instance.nonceAuthenticationProvider = clientAuthenticationProvider;

            return instance;
        }
예제 #2
0
 private WsSessionClient()
 {
     _errorSerializer = new XmlSerializer(typeof(IdCardError));
     _sessionSerializer = new XmlSerializer(typeof(Session));
     _authorizeSerializer = new XmlSerializer(typeof(Authorized));
     nonceAuthenticationProvider = new WSNonceAuthenticationProvider();
 }
예제 #3
0
 private IdCardClientImpl(ClientAuthenticationProvider clientAuthenticationProvider)
 {
     authenticationProvider = clientAuthenticationProvider;
     patronSerializer = new XmlSerializer(typeof(Patron));
     authorizedSerializer = new XmlSerializer(typeof(Authorized));
     cardStockSerializer = new XmlSerializer(typeof(Cardstock));
     pictureSerializer = new XmlSerializer(typeof(IdCardPicture));
     errorSerializer = new XmlSerializer(typeof(IdCardError));
     badgeDefinitionsSerializer = new XmlSerializer(typeof(BadgeDefinitions));
     idCardDefinitionsSerializer = new XmlSerializer(typeof(IdCardDefinitions));
     nonceAuthenticationProvider = new WSNonceAuthenticationProvider();
 }