public static PersonLookupClient Instance(WSNonceAuthenticationProvider clientAuthenticationProvider) { PersonLookupClientImpl instance = new PersonLookupClientImpl(); instance.nonceAuthenticationProvider = clientAuthenticationProvider; return instance; }
private WsSessionClient() { _errorSerializer = new XmlSerializer(typeof(IdCardError)); _sessionSerializer = new XmlSerializer(typeof(Session)); _authorizeSerializer = new XmlSerializer(typeof(Authorized)); nonceAuthenticationProvider = new WSNonceAuthenticationProvider(); }
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(); }