DicomServer/Desktop/Wado/Global.asax.cs

28 lines
750 B
C#
Raw Normal View History

2024-12-13 10:06:20 +08:00
// Copyright (c) 2012-2021 fo-dicom contributors.
// Licensed under the Microsoft Public License (MS-PL).
using System.Web.Http;
using FellowOakDicom;
using FellowOakDicom.Imaging;
using FellowOakDicom.Imaging.NativeCodec;
namespace Wado
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
GlobalConfiguration.Configure(WebApiConfig.Register);
new DicomSetupBuilder()
.RegisterServices(s => s
.AddFellowOakDicom()
.AddTranscoderManager<NativeTranscoderManager>()
.AddImageManager<WinFormsImageManager>()
)
.Build();
}
}
}