28 lines
750 B
C#
28 lines
750 B
C#
// 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();
|
|
|
|
}
|
|
}
|
|
}
|