修改fo-dicom 注册方式测试
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9ad1bbdd7d
commit
3179fca112
|
|
@ -1,4 +1,5 @@
|
||||||
using IRaCIS.Core.API;
|
using FellowOakDicom;
|
||||||
|
using IRaCIS.Core.API;
|
||||||
using IRaCIS.Core.API.HostService;
|
using IRaCIS.Core.API.HostService;
|
||||||
using IRaCIS.Core.Application.BusinessFilter;
|
using IRaCIS.Core.Application.BusinessFilter;
|
||||||
using IRaCIS.Core.Application.BusinessFilter.LegacyController.Database.Api;
|
using IRaCIS.Core.Application.BusinessFilter.LegacyController.Database.Api;
|
||||||
|
|
@ -178,6 +179,7 @@ var env = app.Environment;
|
||||||
|
|
||||||
#region 配置中间件
|
#region 配置中间件
|
||||||
|
|
||||||
|
DicomSetupBuilder.UseServiceProvider(app.Services);
|
||||||
|
|
||||||
app.UseMiddleware<EncryptionRequestMiddleware>();
|
app.UseMiddleware<EncryptionRequestMiddleware>();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,21 @@ namespace IRaCIS.Core.API
|
||||||
{
|
{
|
||||||
public static void AddDicomSetup(this IServiceCollection services)
|
public static void AddDicomSetup(this IServiceCollection services)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// ⭐ 先做全局 DICOM 配置
|
||||||
new DicomSetupBuilder()
|
new DicomSetupBuilder()
|
||||||
.RegisterServices(s => s.AddFellowOakDicom()
|
.SkipValidation() // 👈 在这里设置
|
||||||
.AddTranscoderManager<FellowOakDicom.Imaging.NativeCodec.NativeTranscoderManager>()
|
.Build();
|
||||||
.AddImageManager<ImageSharpImageManager>()
|
|
||||||
)
|
services.AddFellowOakDicom().AddTranscoderManager<FellowOakDicom.Imaging.NativeCodec.NativeTranscoderManager>().AddImageManager<ImageSharpImageManager>();
|
||||||
.SkipValidation()
|
|
||||||
.Build();
|
// new DicomSetupBuilder()
|
||||||
|
// .RegisterServices(s => s.AddFellowOakDicom()
|
||||||
|
//.AddTranscoderManager<FellowOakDicom.Imaging.NativeCodec.NativeTranscoderManager>()
|
||||||
|
// .AddImageManager<ImageSharpImageManager>()
|
||||||
|
// )
|
||||||
|
// .SkipValidation()
|
||||||
|
// .Build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue