Skip to content

Commit

Permalink
Release v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokgelal committed May 2, 2017
1 parent 16eb067 commit ed72b35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Magpie/Magpie.Example/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.0.2.0")]
[assembly: AssemblyFileVersion("0.0.2.0")]
[assembly: AssemblyVersion("0.0.3.0")]
[assembly: AssemblyFileVersion("0.0.3.0")]
Binary file modified src/Magpie/Magpie.latest.nupkg
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Magpie/Magpie/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.2.2.0")]
[assembly: AssemblyFileVersion("0.2.2.0")]
[assembly: AssemblyVersion("0.3.1.0")]
[assembly: AssemblyFileVersion("0.3.1.0")]
[assembly: InternalsVisibleTo("Magpie.Tests")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
6 changes: 3 additions & 3 deletions src/Magpie/Magpie/Services/Magpie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private async Task<bool> Check(string appcastUrl, CheckState checkState, int cha

var appcast = ParseAppcast(data);

if (checkState == CheckState.ChannelSwitch && FailedToEnroll(appcast, channelId))
if (checkState == CheckState.ChannelSwitch && CheckIfFailedToEnroll(appcast, channelId))
{
return false;
}
Expand Down Expand Up @@ -104,7 +104,7 @@ private async Task<bool> Check(string appcastUrl, CheckState checkState, int cha
}
}

private bool FailedToEnroll(RemoteAppcast appcast, int channelId)
private bool CheckIfFailedToEnroll(RemoteAppcast appcast, int channelId)
{
var channel = appcast.Channels.FirstOrDefault(c => c.Id == channelId);
var enrollment = new Enrollment(channel);
Expand All @@ -113,7 +113,6 @@ private bool FailedToEnroll(RemoteAppcast appcast, int channelId)
enrollment.IsRequired = true;
ShowEnrollmentWindow(enrollment);
}
_analyticsLogger.LogEnrollment(enrollment);
OnEnrollmentAvailableEvent(new SingleEventArgs<Enrollment>(enrollment));
return enrollment.IsRequired && !enrollment.IsEnrolled;
}
Expand Down Expand Up @@ -276,6 +275,7 @@ protected virtual void OnArtifactDownloadedEvent(SingleEventArgs<string> args)

protected virtual void OnEnrollmentAvailableEvent(SingleEventArgs<Enrollment> args)
{
_analyticsLogger.LogEnrollment(args.Payload);
var handler = EnrollmentAvailableEvent;
if (handler != null) handler(this, args);
}
Expand Down

0 comments on commit ed72b35

Please sign in to comment.