/// <summary> /// Initializes a new instance of the <see cref="AdditionalInformationService"/> class. /// </summary> /// <param name="configuration">The configuration for the <see cref="AdditionalInformationService"/>.</param> public AdditionalInformationService(InfoscreenConfiguration configuration) : base(configuration) { this.witClient = new Lazy <WorkItemTrackingHttpClient>(() => this.GetWorkItemTrackingHttpClient()); this.buildClient = new Lazy <BuildHttpClient>(() => this.GetBuildClient()); this.gitClient = new Lazy <GitHttpClient>(() => this.GetGitClient()); this.releaseService = new Lazy <ReleaseService>(() => new ReleaseService(configuration)); }
/// <summary> /// Initializes a new instance of the <see cref="VstsContext"/> class. /// </summary> /// <param name="configuration">The configuration.</param> private VstsContext(InfoscreenConfiguration configuration) { this.Configuration = configuration; this.additionalInformationService = new Lazy <AdditionalInformationService>(() => new AdditionalInformationService(this.Configuration)); this.releaseService = new Lazy <ReleaseService>(() => new ReleaseService(this.Configuration)); this.pullRequestService = new Lazy <PullRequestService>(() => new PullRequestService(this.Configuration)); this.buildService = new Lazy <BuildService>(() => new BuildService(this.Configuration)); }
/// <summary> /// Initializes a new instance of the <see cref="BuildService"/> class. /// </summary> /// <param name="config">The <see cref="InfoscreenConfiguration"/> configuration.</param> public BuildService(InfoscreenConfiguration config) : base(config) { this.buildClient = new Lazy <BuildHttpClient>(() => this.GetBuildClient()); }
/// <summary> /// Initializes a new instance of the <see cref="ReleaseService"/> class. /// </summary> /// <param name="configuration">The configuration.</param> public ReleaseService(InfoscreenConfiguration configuration) : base(configuration) { }
/// <summary> /// Initializes a new instance of the <see cref="VstsService"/> class. /// </summary> /// <param name="configuration">The configuration.</param> public VstsService(InfoscreenConfiguration configuration) { this.Configuration = configuration; }
/// <summary> /// Initializes a new instance of the <see cref="PullRequestService"/> class. /// </summary> /// <param name="configuration">The configuration.</param> public PullRequestService(InfoscreenConfiguration configuration) : base(configuration) { this.gitClient = new Lazy <GitHttpClient>(() => this.GetGitClient()); }