예제 #1
0
 protected TfsDestination(
     ICoreConfiguration coreConfiguration,
     IGreenshotLanguage greenshotLanguage,
     ITfsConfiguration tfsConfiguration,
     ITfsLanguage tfsLanguage,
     TfsClient tfsClient,
     Func <CancellationTokenSource, Owned <PleaseWaitForm> > pleaseWaitFormFactory,
     IResourceProvider resourceProvider,
     WorkItem workItem) : this(coreConfiguration, greenshotLanguage, tfsConfiguration, tfsLanguage, tfsClient, pleaseWaitFormFactory, resourceProvider)
 {
     _workItem = workItem;
 }
예제 #2
0
 public TfsConfigViewModel(
     ITfsConfiguration tfsConfiguration,
     ITfsLanguage tfsLanguage,
     IGreenshotLanguage greenshotLanguage,
     TfsClient tfsClient,
     FileConfigPartViewModel fileConfigPartViewModel)
 {
     TfsConfiguration        = tfsConfiguration;
     TfsLanguage             = tfsLanguage;
     GreenshotLanguage       = greenshotLanguage;
     TfsClient               = tfsClient;
     FileConfigPartViewModel = fileConfigPartViewModel;
 }
예제 #3
0
 public TfsDestination(
     ICoreConfiguration coreConfiguration,
     IGreenshotLanguage greenshotLanguage,
     ITfsConfiguration tfsConfiguration,
     ITfsLanguage tfsLanguage,
     TfsClient tfsClient,
     Func <CancellationTokenSource, Owned <PleaseWaitForm> > pleaseWaitFormFactory,
     IResourceProvider resourceProvider) : base(coreConfiguration, greenshotLanguage)
 {
     _tfsConfiguration      = tfsConfiguration;
     _tfsLanguage           = tfsLanguage;
     _tfsClient             = tfsClient;
     _pleaseWaitFormFactory = pleaseWaitFormFactory;
     _resourceProvider      = resourceProvider;
 }
예제 #4
0
        public TfsClient(
            ICoreConfiguration coreConfiguration,
            ITfsConfiguration tfsConfiguration,
            INetworkConfiguration networkConfiguration)
        {
            _coreConfiguration = coreConfiguration;
            _tfsConfiguration  = tfsConfiguration;

            _tfsHttpBehaviour = new HttpBehaviour
            {
                HttpSettings   = networkConfiguration,
                JsonSerializer = new JsonNetJsonSerializer()
            };

#if DEBUG
            // Set json log threshold high
            _tfsHttpBehaviour.RequestConfigurations[nameof(DefaultJsonHttpContentConverterConfiguration)] = new DefaultJsonHttpContentConverterConfiguration
            {
                LogThreshold = 0
            };
#endif
        }
예제 #5
0
 public TfsClient(ITfsConfiguration configuration)
 {
     _configuration = configuration;
 }
예제 #6
0
 public TfsClient(ITfsConfiguration configuration)
 {
     _configuration = configuration;
 }