Make IServerFactory AssemblyNeutral.

This commit is contained in:
Chris Ross 2014-06-24 10:18:05 -07:00
parent e15fe540a8
commit 136811e732
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,32 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
// NON-INFRINGEMENT.
// See the Apache 2 License for the specific language governing
// permissions and limitations under the License.
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Hosting.Server
{
[AssemblyNeutral]
public interface IServerFactory
{
IServerInformation Initialize(IConfiguration configuration);
IDisposable Start(IServerInformation serverInformation, Func<object, Task> application);
}
}

View File

@ -24,6 +24,7 @@
<Compile Include="AuthenticationHandler.cs" />
<Compile Include="FeatureContext.cs" />
<Compile Include="Helpers.cs" />
<Compile Include="IServerFactory.cs" />
<Compile Include="LogHelper.cs" />
<Compile Include="ServerFactory.cs" />
<Compile Include="ServerInformation.cs" />

View File

@ -2,7 +2,6 @@
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.FeatureModel": "1.0.0-*",
"Microsoft.AspNet.Hosting": "1.0.0-*",
"Microsoft.AspNet.Http": "1.0.0-*",
"Microsoft.AspNet.HttpFeature": "1.0.0-*",
"Microsoft.Framework.ConfigurationModel": "1.0.0-*",