Beispiel #1
0
        internal IEnumerable <IErrorResponseHandler> GetErrorResponseHandlers()
        {
            // Check if the current authenticator can handle error responses.
            IErrorResponseHandler authenticator = Authenticator as IErrorResponseHandler;

            if (authenticator != null)
            {
                yield return(authenticator);
            }
        }
Beispiel #2
0
 public RecommendationsService(
     IPlatformClient platformClient,
     IRecommendationsContainer recommendationsContainer,
     IErrorResponseHandler serviceErrorHandler,
     IConnectivityService connectivityService,
     ILoggerFactory loggerFactory)
 {
     _platformClient           = platformClient;
     _recommendationsContainer = recommendationsContainer;
     _serviceErrorHandler      = serviceErrorHandler;
     _connectivityService      = connectivityService;
     _logger = loggerFactory.CreateLogger <RecommendationsService>();
 }
Beispiel #3
0
 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>();
 }