DicomObjects.NET8 Documentation
DicomObjects.DicomWeb Namespace / IStartup Interface
Members



In This Topic
    IStartup Interface
    In This Topic
    Provides a mechanism for configuring services and the Dicom Web Server's request pipeline in place of the deafult implementation
    Syntax
    'Declaration
     
    
    Public Interface IStartup 
    'Usage
     
    
    Dim instance As IStartup
    public interface IStartup 
    public interface class IStartup 
    Remarks

    Find below the default implementation of ConfigureServices and Configure. Please only provide an implementation if you are confident in doing so as it may cause issues if, for example, the standard controllers are not mapped correctly.

    Default ConfigureServices implementation:

    public void ConfigureServices(IServiceCollection services) { services.AddControllers().AddControllersAsServices(); }

    Default Configure implementation:

    public void Configure(IApplicationBuilder app) { app.UseRouting(); app.UseCors(); app.UseAuthentication(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also