调整蚂蚁调度配置读取方式,接入星尘调度配置
This commit is contained in:
parent
db2cf1a28d
commit
546b0335b9
|
@ -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>
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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": "*"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue