31 lines
905 B
C#
31 lines
905 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
using Microsoft.AspNet.Http.Features;
|
|
|
|
namespace Microsoft.AspNet.Hosting
|
|
{
|
|
/// <summary>
|
|
/// Represents a configured web application
|
|
/// </summary>
|
|
public interface IWebApplication : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// The <see cref="IFeatureCollection"/> exposed by the configured server.
|
|
/// </summary>
|
|
IFeatureCollection ServerFeatures { get; }
|
|
|
|
/// <summary>
|
|
/// The <see cref="IServiceProvider"/> for the application.
|
|
/// </summary>
|
|
IServiceProvider Services { get; }
|
|
|
|
/// <summary>
|
|
/// Starts listening on the configured addresses.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
void Start();
|
|
}
|
|
}
|