From 136811e7329787b85cc397029d2beb5eb29e9c2a Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Tue, 24 Jun 2014 10:18:05 -0700 Subject: [PATCH] Make IServerFactory AssemblyNeutral. --- .../IServerFactory.cs | 32 +++++++++++++++++++ .../Microsoft.AspNet.Server.WebListener.kproj | 1 + .../project.json | 1 - 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/Microsoft.AspNet.Server.WebListener/IServerFactory.cs diff --git a/src/Microsoft.AspNet.Server.WebListener/IServerFactory.cs b/src/Microsoft.AspNet.Server.WebListener/IServerFactory.cs new file mode 100644 index 0000000000..0b75dbe5e9 --- /dev/null +++ b/src/Microsoft.AspNet.Server.WebListener/IServerFactory.cs @@ -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 application); + } +} diff --git a/src/Microsoft.AspNet.Server.WebListener/Microsoft.AspNet.Server.WebListener.kproj b/src/Microsoft.AspNet.Server.WebListener/Microsoft.AspNet.Server.WebListener.kproj index e4001830ea..b3e1459db4 100644 --- a/src/Microsoft.AspNet.Server.WebListener/Microsoft.AspNet.Server.WebListener.kproj +++ b/src/Microsoft.AspNet.Server.WebListener/Microsoft.AspNet.Server.WebListener.kproj @@ -24,6 +24,7 @@ + diff --git a/src/Microsoft.AspNet.Server.WebListener/project.json b/src/Microsoft.AspNet.Server.WebListener/project.json index f28e0e19e3..28f41ada38 100644 --- a/src/Microsoft.AspNet.Server.WebListener/project.json +++ b/src/Microsoft.AspNet.Server.WebListener/project.json @@ -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-*",