Skip to content

Commit bf2ef1a

Browse files
committed
More comments
1 parent 21dcc72 commit bf2ef1a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/DataFactory/DataFactoryV2/Constants.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,10 @@ internal static class Constants
229229
public const string DataFactoryId = "DataFactoryId";
230230

231231
public const string HelpPassThru = "If specified, cmdlet will return return true on successful delete.";
232+
233+
public const string ActionDescriptionForAddEventSubscription = "Subscribe the event trigger to external service events.";
234+
235+
public const string ActionDescriptionForRemoveEventSubscription = "Unsubscribe the event trigger from external service events.";
236+
232237
}
233238
}

src/DataFactory/DataFactoryV2/Triggers/AddAzureDataFactoryTriggerSubscriptionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public override void ExecuteCmdlet()
3737
ByResourceId();
3838
ByInputObject(InputObject);
3939

40-
if (ShouldProcess(Name))
40+
if (ShouldProcess(Name, Constants.ActionDescriptionForAddEventSubscription))
4141
{
4242
WriteObject(DataFactoryClient.SubscribeToTriggerEvents(ResourceGroupName, DataFactoryName, Name));
4343
}

src/DataFactory/DataFactoryV2/Triggers/RemoveAzureDataFactoryTriggerSubscriptionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public override void ExecuteCmdlet()
4040
ByResourceId();
4141
ByInputObject(InputObject);
4242

43-
if (ShouldProcess(Name))
43+
if (ShouldProcess(Name, Constants.ActionDescriptionForRemoveEventSubscription))
4444
{
4545
DataFactoryClient.UnsubscribeFromTriggerEvents(ResourceGroupName, DataFactoryName, Name);
4646
}

0 commit comments

Comments
 (0)