Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to create rules via scripting #68

Merged
merged 7 commits into from Jul 31, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Remove unused parameter

  • Loading branch information...
bording committed Jul 29, 2019
commit eba9f3b936063b918f7fdb3e5ee4bbccc87e8ff4
@@ -37,7 +37,7 @@ public static async Task Create(ManagementClient client, CommandArgument name, C
}
}

public static async Task Subscribe(ManagementClient client, CommandArgument name, CommandOption topicName, CommandOption subscriptionName, CommandOption<int> size, CommandArgument eventType, CommandOption ruleName)
public static async Task Subscribe(ManagementClient client, CommandArgument name, CommandOption topicName, CommandOption subscriptionName, CommandArgument eventType, CommandOption ruleName)
{
try
{
@@ -49,7 +49,7 @@ public static async Task Subscribe(ManagementClient client, CommandArgument name
}
}

public static async Task Unsubscribe(ManagementClient client, CommandArgument name, CommandOption topicName, CommandOption subscriptionName, CommandOption<int> size, CommandArgument eventType, CommandOption ruleName)
public static async Task Unsubscribe(ManagementClient client, CommandArgument name, CommandOption topicName, CommandOption subscriptionName, CommandArgument eventType, CommandOption ruleName)
{
try
{
@@ -70,7 +70,7 @@ static int Main(string[] args)

subscribeCommand.OnExecute(async () =>
{
await CommandRunner.Run(connectionString, client => Endpoint.Subscribe(client, name, topicName, subscriptionName, size, eventType, shortenedRuleName));
await CommandRunner.Run(connectionString, client => Endpoint.Subscribe(client, name, topicName, subscriptionName, eventType, shortenedRuleName));

Console.WriteLine($"Endpoint '{name.Value}' subscription for '{eventType.Value}' is ready.");
});
@@ -89,7 +89,7 @@ static int Main(string[] args)

unsubscribeCommand.OnExecute(async () =>
{
await CommandRunner.Run(connectionString, client => Endpoint.Unsubscribe(client, name, topicName, subscriptionName, size, eventType, shortenedRuleName));
await CommandRunner.Run(connectionString, client => Endpoint.Unsubscribe(client, name, topicName, subscriptionName, eventType, shortenedRuleName));

Console.WriteLine($"Endpoint '{name.Value}' unsubscribed from '{eventType.Value}'.");
});
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.