Using IServiceManifest from Microsoft.Framework.Runtime.Interfaces
This commit is contained in:
parent
6208698a5c
commit
5038c369db
|
|
@ -2,14 +2,12 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Microsoft.Framework.Runtime;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Hosting
|
namespace Microsoft.AspNet.Hosting
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allows consumers to perform cleanup during a graceful shutdown.
|
/// Allows consumers to perform cleanup during a graceful shutdown.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AssemblyNeutral]
|
|
||||||
public interface IApplicationLifetime
|
public interface IApplicationLifetime
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ using Microsoft.Framework.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Hosting
|
namespace Microsoft.AspNet.Hosting
|
||||||
{
|
{
|
||||||
[AssemblyNeutral]
|
|
||||||
public interface IConfigureHostingEnvironment
|
public interface IConfigureHostingEnvironment
|
||||||
{
|
{
|
||||||
void Configure(IHostingEnvironment hostingEnv);
|
void Configure(IHostingEnvironment hostingEnv);
|
||||||
|
|
@ -2,11 +2,9 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using Microsoft.AspNet.FileProviders;
|
using Microsoft.AspNet.FileProviders;
|
||||||
using Microsoft.Framework.Runtime;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Hosting
|
namespace Microsoft.AspNet.Hosting
|
||||||
{
|
{
|
||||||
[AssemblyNeutral]
|
|
||||||
public interface IHostingEnvironment
|
public interface IHostingEnvironment
|
||||||
{
|
{
|
||||||
string EnvironmentName { get; set; }
|
string EnvironmentName { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,9 @@ using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Builder;
|
using Microsoft.AspNet.Builder;
|
||||||
using Microsoft.Framework.ConfigurationModel;
|
using Microsoft.Framework.ConfigurationModel;
|
||||||
using Microsoft.Framework.Runtime;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Hosting.Server
|
namespace Microsoft.AspNet.Hosting.Server
|
||||||
{
|
{
|
||||||
[AssemblyNeutral]
|
|
||||||
public interface IServerFactory
|
public interface IServerFactory
|
||||||
{
|
{
|
||||||
IServerInformation Initialize(IConfiguration configuration);
|
IServerInformation Initialize(IConfiguration configuration);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNet.Http": "1.0.0-*",
|
"Microsoft.AspNet.Http": "1.0.0-*",
|
||||||
"Microsoft.AspNet.FileProviders.Interfaces": "1.0.0-*",
|
"Microsoft.AspNet.FileProviders.Interfaces": "1.0.0-*",
|
||||||
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*",
|
|
||||||
"Microsoft.Framework.ConfigurationModel": "1.0.0-*"
|
"Microsoft.Framework.ConfigurationModel": "1.0.0-*"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Microsoft.Framework.DependencyInjection.ServiceLookup
|
|
||||||
{
|
|
||||||
#if ASPNET50 || ASPNETCORE50
|
|
||||||
[Microsoft.Framework.Runtime.AssemblyNeutral]
|
|
||||||
#endif
|
|
||||||
public interface IServiceManifest
|
|
||||||
{
|
|
||||||
IEnumerable<Type> Services { get; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
"description": "ASP.NET 5 core hosting infrastructure and startup logic for web applications.",
|
"description": "ASP.NET 5 core hosting infrastructure and startup logic for web applications.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNet.Hosting.Interfaces": "1.0.0-*",
|
"Microsoft.AspNet.Hosting.Interfaces": "1.0.0-*",
|
||||||
|
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*",
|
||||||
"Microsoft.AspNet.FileProviders": "1.0.0-*",
|
"Microsoft.AspNet.FileProviders": "1.0.0-*",
|
||||||
"Microsoft.AspNet.Http.Core": "1.0.0-*",
|
"Microsoft.AspNet.Http.Core": "1.0.0-*",
|
||||||
"Microsoft.Framework.Logging": "1.0.0-*",
|
"Microsoft.Framework.Logging": "1.0.0-*",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue