mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
857 B
31 lines
857 B
using Volo.Abp.AspNetCore;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.AspNetCore.Modularity;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace AspNetCoreDemo
|
|
{
|
|
[DependsOn(typeof(AbpAspNetCoreModule))]
|
|
public class AppModule : AbpModule
|
|
{
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context)
|
|
{
|
|
var app = context.GetApplicationBuilder();
|
|
|
|
context.GetLoggerFactory().AddConsole();
|
|
|
|
if (context.GetEnvironment().IsDevelopment())
|
|
{
|
|
app.UseDeveloperExceptionPage();
|
|
}
|
|
|
|
app.Run(async (ctx) =>
|
|
{
|
|
await ctx.Response.WriteAsync("Hello World 3!");
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|