Skip to content

Commit

Permalink
workaround for null loggerfactory (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlwanl authored Apr 19, 2019
1 parent 4f7f424 commit 8e13755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/Management/MessagePublisher/MessagePublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Azure.SignalR.Management;
using Microsoft.Extensions.Logging;

namespace Microsoft.Azure.SignalR.Samples.Management
{
Expand All @@ -30,7 +31,7 @@ public async Task InitAsync()
option.ServiceTransportType = _serviceTransportType;
}).Build();

_hubContext = await serviceManager.CreateHubContextAsync(HubName);
_hubContext = await serviceManager.CreateHubContextAsync(HubName, new LoggerFactory());
}

public Task ManageUserGroup(string command, string userId, string groupName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<PackageReference Include="Microsoft.Azure.SignalR.Management" Version="1.0.0-preview1-*" />
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
</ItemGroup>

</Project>

0 comments on commit 8e13755

Please sign in to comment.