Merge pull request #4541 from sbwalker/dev
fix issues in default template for Interactive Client (WebAssembly) scenarios
This commit is contained in:
commit
81ce920e69
|
@ -2,13 +2,12 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Oqtane.Modules;
|
|
||||||
using Oqtane.Services;
|
using Oqtane.Services;
|
||||||
using Oqtane.Shared;
|
using Oqtane.Shared;
|
||||||
|
|
||||||
namespace [Owner].Module.[Module].Services
|
namespace [Owner].Module.[Module].Services
|
||||||
{
|
{
|
||||||
public class [Module]Service : ServiceBase, I[Module]Service, IService
|
public class [Module]Service : ServiceBase, I[Module]Service
|
||||||
{
|
{
|
||||||
public [Module]Service(IHttpClientFactory http, SiteState siteState) : base(http, siteState) { }
|
public [Module]Service(IHttpClientFactory http, SiteState siteState) : base(http, siteState) { }
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,13 @@ using Microsoft.AspNetCore.Http;
|
||||||
using Oqtane.Enums;
|
using Oqtane.Enums;
|
||||||
using Oqtane.Infrastructure;
|
using Oqtane.Infrastructure;
|
||||||
using Oqtane.Models;
|
using Oqtane.Models;
|
||||||
using Oqtane.Modules;
|
|
||||||
using Oqtane.Security;
|
using Oqtane.Security;
|
||||||
using Oqtane.Shared;
|
using Oqtane.Shared;
|
||||||
using [Owner].Module.[Module].Repository;
|
using [Owner].Module.[Module].Repository;
|
||||||
|
|
||||||
namespace [Owner].Module.[Module].Services
|
namespace [Owner].Module.[Module].Services
|
||||||
{
|
{
|
||||||
public class Server[Module]Service : I[Module]Service, ITransientService
|
public class Server[Module]Service : I[Module]Service
|
||||||
{
|
{
|
||||||
private readonly I[Module]Repository _[Module]Repository;
|
private readonly I[Module]Repository _[Module]Repository;
|
||||||
private readonly IUserPermissions _userPermissions;
|
private readonly IUserPermissions _userPermissions;
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
using Microsoft.AspNetCore.Builder;
|
|
||||||
using Microsoft.AspNetCore.Hosting;
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using Oqtane.Infrastructure;
|
|
||||||
using [Owner].Module.[Module].Repository;
|
|
||||||
using [Owner].Module.[Module].Services;
|
|
||||||
|
|
||||||
namespace [Owner].Module.[Module].Startup
|
|
||||||
{
|
|
||||||
public class [Module]ServerStartup : IServerStartup
|
|
||||||
{
|
|
||||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
|
||||||
{
|
|
||||||
// not implemented
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ConfigureMvc(IMvcBuilder mvcBuilder)
|
|
||||||
{
|
|
||||||
// not implemented
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ConfigureServices(IServiceCollection services)
|
|
||||||
{
|
|
||||||
services.AddTransient<I[Module]Service, Server[Module]Service>();
|
|
||||||
services.AddDbContextFactory<[Module]Context>(opt => { }, ServiceLifetime.Transient);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user