public override void Configure(IEndpointOptions options)
 {
     base.Configure(options);
     Log.LogDebug("TfsWorkItemEndPoint::Configure");
     _Options = (TfsWorkItemEndPointOptions)options;
     ValidateConfiguration(_Options);
 }
 private void ValidateConfiguration(TfsWorkItemEndPointOptions options)
 {
     if (string.IsNullOrEmpty(_Options.Organisation))
     {
         throw new ArgumentNullException(nameof(_Options.Organisation));
     }
     if (string.IsNullOrEmpty(_Options.Project))
     {
         throw new ArgumentNullException(nameof(_Options.Project));
     }
     if (string.IsNullOrEmpty(_Options.AccessToken))
     {
         throw new ArgumentNullException(nameof(_Options.AccessToken));
     }
     if (string.IsNullOrEmpty(_Options.Query?.Query))
     {
         throw new ArgumentNullException(nameof(_Options.Query));
     }
 }
Ejemplo n.º 3
0
 public override void Configure(IEndpointOptions options)
 {
     Log.LogDebug("TfsWorkItemEndPoint::Configure");
     _Options = (TfsWorkItemEndPointOptions)options;
 }