internal IEnumerable <IErrorResponseHandler> GetErrorResponseHandlers() { // Check if the current authenticator can handle error responses. IErrorResponseHandler authenticator = Authenticator as IErrorResponseHandler; if (authenticator != null) { yield return(authenticator); } }
public RecommendationsService( IPlatformClient platformClient, IRecommendationsContainer recommendationsContainer, IErrorResponseHandler serviceErrorHandler, IConnectivityService connectivityService, ILoggerFactory loggerFactory) { _platformClient = platformClient; _recommendationsContainer = recommendationsContainer; _serviceErrorHandler = serviceErrorHandler; _connectivityService = connectivityService; _logger = loggerFactory.CreateLogger <RecommendationsService>(); }
public MetadataService( IMetadataContainer metadataContainer, IUserProfileContainer userProfileContainer, IPlatformClient platformClient, IErrorResponseHandler serviceErrorHandler, IConnectivityService connectivityService, ILoggerFactory loggerFactory) { _metadataContainer = metadataContainer; _userProfileContainer = userProfileContainer; _platformClient = platformClient; _serviceErrorHandler = serviceErrorHandler; _connectivityService = connectivityService; _logger = loggerFactory.CreateLogger <UserService>(); }