예제 #1
0
 internal FileShareProvider(AgentTaskPluginExecutionContext context, VssConnection connection, IAppTraceSource tracer, IDedupManifestArtifactClientFactory factory)
 {
     this.factory    = factory;
     this.context    = context;
     this.tracer     = tracer;
     this.connection = connection;
 }
        public FileContainerProvider(VssConnection connection, IAppTraceSource tracer)
        {
            BuildHttpClient buildHttpClient = connection.GetClient <BuildHttpClient>();

            connection      = new VssConnection(buildHttpClient.BaseAddress, connection.Credentials);
            containerClient = connection.GetClient <FileContainerHttpClient>();
            this.tracer     = tracer;
        }
예제 #3
0
        /// <inheritdoc />
        public void SetTracer(IAppTraceSource tracer)
        {
            if (_tracer != null)
            {
                throw new InvalidOperationException($"{nameof(SetTracer)} was already called earlier. In order to preserve thread safety it cannot be changed.");
            }

            _tracer = tracer;
        }
        public async Task RunAsync(AgentTaskPluginExecutionContext context, CancellationToken token)
        {
            ArgUtil.NotNull(context, nameof(context));
            // Path
            // TODO: Translate targetPath from container to host (Ting)
            string targetPath = context.GetInput(ArtifactEventProperties.TargetPath, required: true);

            this.tracer = new CallbackAppTraceSource(str => context.Output(str), System.Diagnostics.SourceLevels.Information);

            await ProcessCommandInternalAsync(context, targetPath, token);
        }
예제 #5
0
        public async Task RunAsync(AgentTaskPluginExecutionContext context, CancellationToken token)
        {
            ArgUtil.NotNull(context, nameof(context));
            // Path
            // TODO: Translate targetPath from container to host (Ting)
            string targetPath = context.GetInput(ArtifactEventProperties.TargetPath, required: true);

            this.tracer = context.CreateArtifactsTracer();

            await ProcessCommandInternalAsync(context, targetPath, token);
        }
        public PipelineArtifactProvider(AgentTaskPluginExecutionContext context, VssConnection connection, IAppTraceSource tracer)
        {
            var dedupStoreHttpClient = connection.GetClient <DedupStoreHttpClient>();

            this.tracer     = tracer;
            this.context    = context;
            this.connection = connection;
            dedupStoreHttpClient.SetTracer(tracer);
            int parallelism = GetDedupStoreClientMaxParallelism(context);
            var client      = new DedupStoreClientWithDataport(dedupStoreHttpClient, parallelism);
        }
예제 #7
0
 private BlobStoreClientTelemetryTfs(IAppTraceSource tracer, Uri baseAddress, CustomerIntelligenceTelemetrySender sender)
     : base(tracer, baseAddress, sender)
 {
     this.sender = sender;
 }
예제 #8
0
 public FileShareProvider(AgentTaskPluginExecutionContext context, VssConnection connection, IAppTraceSource tracer) : this(context, connection, tracer, DedupManifestArtifactClientFactory.Instance)
 {
 }
예제 #9
0
 public ArtifactProviderFactory(AgentTaskPluginExecutionContext context, VssConnection connection, IAppTraceSource tracer)
 {
     pipelineArtifactProvider = new PipelineArtifactProvider(context, connection, tracer);
     fileContainerProvider    = new FileContainerProvider(connection, tracer);
     fileShareProvider        = new FileShareProvider(context, connection, tracer);
 }
 // for testing
 public BlobStoreClientTelemetryTfs(IAppTraceSource tracer, Uri baseAddress, VssConnection connection, ITelemetrySender sender)
     : base(tracer, baseAddress, sender)
 {
     _ciSender = new CustomerIntelligenceTelemetrySender(connection);
     this.senders.Add(_ciSender);
 }
예제 #11
0
 public PipelineArtifactServer(IAppTraceSource tracer)
 {
     this.tracer = tracer;
 }
예제 #12
0
 /// <nodoc />
 public SymbolIndexer(IAppTraceSource tracer)
 {
     m_symstoreUtil = new SymstoreUtil(tracer);
 }
        public Task RunAsync(AgentTaskPluginExecutionContext context, CancellationToken token)
        {
            this.tracer = context.CreateArtifactsTracer();

            return(this.ProcessCommandInternalAsync(context, token));
        }
예제 #14
0
 // for testing
 public BlobStoreClientTelemetryTfs(IAppTraceSource tracer, Uri baseAddress, VssConnection connection, ITelemetrySender sender)
     : base(tracer, baseAddress, sender)
 {
     this.sender = sender as CustomerIntelligenceTelemetrySender;
 }
예제 #15
0
 public ArtifactItemFilters(VssConnection connection, IAppTraceSource tracer)
 {
     this.tracer     = tracer;
     this.connection = connection;
 }
 // for testing
 public BlobStoreClientTelemetryTfs(IAppTraceSource tracer, Uri baseAddress, VssConnection connection, ITelemetrySender sender)
     : base(tracer, baseAddress, sender)
 {
 }
 public BlobStoreClientTelemetryTfs(IAppTraceSource tracer, Uri baseAddress, VssConnection connection)
     : base(tracer, baseAddress, new CustomerIntelligenceTelemetrySender(connection))
 {
 }
 public PipelineCacheServer(AgentTaskPluginExecutionContext context)
 {
     this.tracer = context.CreateArtifactsTracer();
 }
예제 #19
0
 /// <nodoc />
 public SymbolIndexer(IAppTraceSource tracer)
 {
     m_symstoreUtil = new SymstoreUtil(tracer);
     m_symstoreUtil.SetIndexableFileFormats(SymbolFileFormat.All);
 }
 public PipelineArtifactProvider(AgentTaskPluginExecutionContext context, VssConnection connection, IAppTraceSource tracer)
 {
     this.tracer     = tracer;
     this.context    = context;
     this.connection = connection;
 }
 public FileContainerProvider(VssConnection connection, IAppTraceSource tracer)
 {
     containerClient = connection.GetClient <FileContainerHttpClient>();
     this.tracer     = tracer;
 }
예제 #22
0
 public ArtifactProviderFactory(AgentTaskPluginExecutionContext context, VssConnection connection, IAppTraceSource tracer)
 {
     this._connection = connection;
     this._context    = context;
     this._tracer     = tracer;
 }