调整蚂蚁调度配置读取方式,接入星尘调度配置

This commit is contained in:
xiyunfei 2022-01-03 17:31:47 +08:00
parent db2cf1a28d
commit 546b0335b9
5 changed files with 8 additions and 25 deletions

View File

@ -8,9 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Platform>Any CPU</Platform>
<PublishDir>..\Bin\Server\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<TargetFramework>net6.0</TargetFramework>
<SelfContained>false</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
</PropertyGroup>
</Project>

View File

@ -23,7 +23,7 @@
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NewLife.Cube.Core" Version="4.2.2021.1204" />
<PackageReference Include="NewLife.Cube.Core" Version="5.0.2022.101" />
<PackageReference Include="NewLife.Stardust" Version="1.5.2021.1204" />
</ItemGroup>
<ItemGroup>

View File

@ -13,8 +13,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishUrl>..\Bin\Web\publish\</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>netcoreapp3.1</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<TargetFramework>net6.0</TargetFramework>
<ProjectGuid>a9e0597c-e818-4b33-8ac3-be134d68b78e</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup>

View File

@ -14,11 +14,11 @@ namespace AntJob.Web
public void ConfigureServices(IServiceCollection services)
{
#region
//var star = new StarFactory(null, null, null);
var star = new StarFactory(null, null, null);
//services.AddSingleton(star);
//services.AddSingleton(star.Tracer);
//services.AddSingleton(star.Config);
services.AddSingleton(star);
services.AddSingleton(star.Tracer);
services.AddSingleton(star.Config);
#endregion
services.AddControllersWithViews();

View File

@ -4,19 +4,5 @@
"Default": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"Membership": {
"connectionString": "Data Source=..\\Data\\Membership.db",
"providerName": "SQLite"
},
"Log": {
"connectionString": "Data Source=..\\Data\\Log.db",
"providerName": "SQLite"
},
"Ant": {
"connectionString": "Data Source=..\\Data\\Ant.db",
"providerName": "SQLite"
}
}
"AllowedHosts": "*"
}