/// <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));
 }
示例#2
0
 /// <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));
 }
示例#3
0
 /// <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());
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReleaseService"/> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 public ReleaseService(InfoscreenConfiguration configuration) :
     base(configuration)
 {
 }
示例#5
0
 /// <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;
 }
示例#6
0
 /// <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());
 }