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;
 }
Exemple #2
0
        public RepositoryHost(
            IApiClient apiClient,
            IModelService modelService,
            ILoginManager loginManager,
            ILoginCache loginCache,
            IUsageTracker usage)
        {
            ApiClient         = apiClient;
            ModelService      = modelService;
            this.loginManager = loginManager;
            this.loginCache   = loginCache;
            this.usage        = usage;

            Debug.Assert(apiClient.HostAddress != null, "HostAddress of an api client shouldn't be null");
            Address     = apiClient.HostAddress;
            hostAddress = apiClient.HostAddress;
            Title       = apiClient.HostAddress.Title;
        }
 public ApiClientFactory(ILoginCache loginCache, IProgram program, ILoggingConfiguration config)
 {
     LoginCache    = loginCache;
     productHeader = program.ProductHeader;
     config.Configure();
 }
Exemple #4
0
 public ApiClientFactory(ILoginCache loginCache, IProgram program)
 {
     LoginCache    = loginCache;
     productHeader = program.ProductHeader;
 }