-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
attachemntenricher
to CommonEnricherConfig
+semver: minor
- Loading branch information
Showing
3 changed files
with
102 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...nTools.Clients.AzureDevops.ObjectModel/ProcessorEnrichers/TfsAttachmentEnricherOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.TeamFoundation.Build.Client; | ||
using MigrationTools.ProcessorEnrichers; | ||
|
||
namespace MigrationTools.Enrichers | ||
{ | ||
public class TfsAttachmentEnricherOptions : ProcessorEnricherOptions, ITfsAttachmentEnricherOptions | ||
{ | ||
public override Type ToConfigure => typeof(TfsAttachmentEnricher); | ||
|
||
public string ExportBasePath { get; set; } | ||
public string MaxAttachmentSize { get; set; } | ||
|
||
public override void SetDefaults() | ||
{ | ||
Enabled = true; | ||
ExportBasePath = @"c:\temp\WorkItemAttachmentExport"; | ||
MaxAttachmentSize = "480000000"; | ||
} | ||
|
||
static public TfsAttachmentEnricherOptions GetDefaults() | ||
{ | ||
var result = new TfsAttachmentEnricherOptions(); | ||
result.SetDefaults(); | ||
return result; | ||
} | ||
} | ||
|
||
public interface ITfsAttachmentEnricherOptions | ||
{ | ||
public string ExportBasePath { get; set; } | ||
public string MaxAttachmentSize { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters