public override void UpdateSettings(ITagSourceSettings settings) { /* * triggered when settings change. You can change any private vars used by Update at this point. * After this function exits, Update will be called, so do not call it here. */ _settings = (SampleWebTagSourceSettings)settings; }
public override void Initialize(ITagSourceSettings settings) { var sampleTagSettings = (SampleTagSettings)settings ?? new SampleTagSettings(); Settings = sampleTagSettings; CustomNotes = sampleTagSettings.CustomNotes; UseCustomNotes = CustomNotes != null; }
public override void Initialize(ITagSourceSettings settings) { /* * When settings is null, user is creating the plugin * When settings is not null, user is editing the plugin */ Settings = settings ?? new SampleWebTagSourceSettings { Url = "https://raw.githubusercontent.com/manictime/samplewebtagsource/master/ManicTime.TagSource.SampleWeb/SampleTags.txt" }; Url = ((SampleWebTagSourceSettings)Settings).Url; }
public override void UpdateSettings(ITagSourceSettings settings) { var azureDevOpsSettings = (AzureDevOpsWorkItemTagSettings)settings ?? new AzureDevOpsWorkItemTagSettings(); if (string.IsNullOrWhiteSpace(azureDevOpsSettings.PersonalAccessToken)) { _tagsImporter = null; return; } TagsImporterConfig config = CreateConfigFrom(azureDevOpsSettings); _tagsImporter = new TagsImporter(config); }
public override void Initialize(ITagSourceSettings settings) { var azureDevOpsTagSettings = (AzureDevOpsWorkItemTagSettings)settings ?? new AzureDevOpsWorkItemTagSettings(); Settings = azureDevOpsTagSettings; PersonalAccessToken = azureDevOpsTagSettings.PersonalAccessToken; TimeTrackerApiSecret = azureDevOpsTagSettings.TimeTrackerApiSecret; Organization = azureDevOpsTagSettings.Organization; BillableActivityId = azureDevOpsTagSettings.BillableActivityId; NonBillableActivityId = azureDevOpsTagSettings.NonBillableActivityId; BillableWiqlQueryTemplate = azureDevOpsTagSettings.BillableWiqlQueryTemplate; NonBillableWiqlQueryTemplate = azureDevOpsTagSettings.NonBillableWiqlQueryTemplate; Days = azureDevOpsTagSettings.Days; }
protected override BasicTagSourceInstance CreateServerTagSourceInstance(ITagSourceSettings settings, string cacheTimestamp) { return(new SampleTagSourceInstance()); }
public override void UpdateSettings(ITagSourceSettings settings) { var sampleTagSettings = (SampleTagSettings)settings ?? new SampleTagSettings(); _customNotes = sampleTagSettings.CustomNotes; }
public override void UpdateSettings(ITagSourceSettings settings) { //throw new NotImplementedException(); }
public override void Initialize(ITagSourceSettings settings) { }
protected override BasicTagSourceInstance CreateServerTagSourceInstance(ITagSourceSettings settings, string cacheTimestamp) { return(new AzureDevOpsWorkItemTagSourceInstance((AzureDevOpsWorkItemTagSettings)settings)); }