コード例 #1
0
 public ModelServiceFactory(
     IApiClientFactory apiClientFactory,
     IHostCacheFactory hostCacheFactory,
     IAvatarProvider avatarProvider)
 {
     this.apiClientFactory = apiClientFactory;
     this.hostCacheFactory = hostCacheFactory;
     this.avatarProvider   = avatarProvider;
 }
コード例 #2
0
ファイル: ModelServiceFactory.cs プロジェクト: ehmz11/aaa
 public ModelServiceFactory(
     IApiClientFactory apiClientFactory,
     IHostCacheFactory hostCacheFactory,
     IAvatarProvider avatarProvider,
     [Import(AllowDefault = true)] JoinableTaskContext joinableTaskContext)
 {
     this.apiClientFactory = apiClientFactory;
     this.hostCacheFactory = hostCacheFactory;
     this.avatarProvider   = avatarProvider;
     JoinableTaskContext   = joinableTaskContext ?? ThreadHelper.JoinableTaskContext;
 }
コード例 #3
0
 public RepositoryHostFactory(
     IApiClientFactory apiClientFactory,
     IHostCacheFactory hostCacheFactory,
     ILoginCache loginCache,
     IAvatarProvider avatarProvider,
     ITwoFactorChallengeHandler twoFactorChallengeHandler)
 {
     this.apiClientFactory          = apiClientFactory;
     this.hostCacheFactory          = hostCacheFactory;
     this.loginCache                = loginCache;
     this.avatarProvider            = avatarProvider;
     this.twoFactorChallengeHandler = twoFactorChallengeHandler;
 }
コード例 #4
0
 public RepositoryHostFactory(
     IApiClientFactory apiClientFactory,
     IHostCacheFactory hostCacheFactory,
     ILoginCache loginCache,
     IAvatarProvider avatarProvider,
     ITwoFactorChallengeHandler twoFactorChallengeHandler)
 {
     this.apiClientFactory = apiClientFactory;
     this.hostCacheFactory = hostCacheFactory;
     this.loginCache = loginCache;
     this.avatarProvider = avatarProvider;
     this.twoFactorChallengeHandler = twoFactorChallengeHandler;
 }
コード例 #5
0
        static ModelServiceFactory CreateTarget(
            IHostCacheFactory hostCacheFactory = null)
        {
            var apiClientFactory = Substitute.For <IApiClientFactory>();
            var avatarProvider   = Substitute.For <IAvatarProvider>();

            hostCacheFactory = hostCacheFactory ?? Substitute.For <IHostCacheFactory>();

            return(new ModelServiceFactory(
                       apiClientFactory,
                       hostCacheFactory,
                       avatarProvider));
        }
コード例 #6
0
 public RepositoryHostFactory(
     IApiClientFactory apiClientFactory,
     IHostCacheFactory hostCacheFactory,
     ILoginManager loginManager,
     ILoginCache loginCache,
     IAvatarProvider avatarProvider,
     IUsageTracker usage)
 {
     this.apiClientFactory = apiClientFactory;
     this.hostCacheFactory = hostCacheFactory;
     this.loginManager     = loginManager;
     this.loginCache       = loginCache;
     this.avatarProvider   = avatarProvider;
     this.usage            = usage;
 }
コード例 #7
0
        static ModelServiceFactory CreateTarget(
            IHostCacheFactory hostCacheFactory = null)
        {
            var apiClientFactory     = Substitute.For <IApiClientFactory>();
            var graphQLClientFactory = Substitute.For <IGraphQLClientFactory>();
            var avatarProvider       = Substitute.For <IAvatarProvider>();

            hostCacheFactory = hostCacheFactory ?? Substitute.For <IHostCacheFactory>();

            return(new ModelServiceFactory(
                       apiClientFactory,
                       hostCacheFactory,
                       avatarProvider,
                       new JoinableTaskContext()));
        }