コード例 #1
0
ファイル: Request.cs プロジェクト: artzub/LoggenCSG
        internal IEnumerable <IErrorResponseHandler> GetErrorResponseHandlers()
        {
            // Check if the current authenticator can handle error responses.
            IErrorResponseHandler authenticator = Authenticator as IErrorResponseHandler;

            if (authenticator != null)
            {
                yield return(authenticator);
            }
        }
コード例 #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>();
 }
コード例 #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>();
 }