baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+42
@@ -0,0 +1,42 @@
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Opsoft.NetCore.O3App.Infrastructure;
|
||||
using Opsoft.NetCore.O3App.Shared.Data;
|
||||
using System;
|
||||
|
||||
namespace Opsoft.NetCore.O3App.Test
|
||||
{
|
||||
public class TestStartup
|
||||
{
|
||||
public IConfiguration Configuration { get; }
|
||||
|
||||
public TestStartup(IConfiguration configuration)
|
||||
{
|
||||
Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services
|
||||
.AddHttpClient()
|
||||
.AddOptions()
|
||||
//.AddGenericDSFClient()
|
||||
.AddCustomHttpClient()
|
||||
.AddSkynetLogger()
|
||||
.AddTraceId()
|
||||
//.AddRedisCache(builder =>
|
||||
//{
|
||||
// builder.UseStackExchange().AddEndpoint("Opsoft.NetCore.O3App", "192.168.0.147:10577");
|
||||
//})
|
||||
.AddDataSource(builder => builder.UseConfiguration(Configuration));
|
||||
|
||||
services.AddDataSource(builder => builder.UseConfiguration(Configuration));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user