Skip to content

Commit

Permalink
Add an async SwitchSubscribedChannel method
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessagertman committed Apr 28, 2017
1 parent 46ec4f1 commit 6e89c2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Magpie/Magpie/Services/Magpie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ await Check(AppInfo.AppCastUrl, CheckState.ChannelSwitch, channelId, showDebuggi
.ConfigureAwait(false);
}

private async Task Check(string appcastUrl, CheckState checkState, int channelId = 1, bool showDebuggingWindow = false)
public Task<bool> SwitchSubscribedChannelAsync(int channelId, bool showDebuggingWindow = false)
{
return Check(AppInfo.AppCastUrl, CheckState.ChannelSwitch, channelId, showDebuggingWindow);
}

private async Task<bool> Check(string appcastUrl, CheckState checkState, int channelId = 1, bool showDebuggingWindow = false)
{
_logger.Log(string.Format("Starting fetching remote channel content from address: {0}", appcastUrl));
Expand Down

0 comments on commit 6e89c2a

Please sign in to comment.