fixd issue where the ihostedservice registration was too wide resulting in an error Cannot instantiate implementation type 'Microsoft.Extensions.Hosting.BackgroundService' for service type 'Microsoft.Extensions.Hosting.IHostedService'

This commit is contained in:
Shaun Walker
2020-01-10 10:51:14 -05:00
parent 72f0eae441
commit d8d5e768b2
2 changed files with 7 additions and 3 deletions

View File

@ -42,7 +42,7 @@ namespace Oqtane.Controllers
[HttpGet("{id}")]
public Page Get(int id, string userid)
{
if (userid == "")
if (string.IsNullOrEmpty(userid))
{
return Pages.GetPage(id);
}