From 58f759ac25521207f8a1bd632c3740972cdf8e1e Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Fri, 10 Apr 2015 09:51:01 -0700 Subject: [PATCH] Move IServerInformation to Hosting. --- src/Microsoft.AspNet.Http.Core/ApplicationBuilder.cs | 6 +++--- src/Microsoft.AspNet.Http/IApplicationBuilder.cs | 2 +- src/Microsoft.AspNet.Http/IServerInformation.cs | 10 ---------- 3 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 src/Microsoft.AspNet.Http/IServerInformation.cs diff --git a/src/Microsoft.AspNet.Http.Core/ApplicationBuilder.cs b/src/Microsoft.AspNet.Http.Core/ApplicationBuilder.cs index 71f6ef267b..e7a00106c2 100644 --- a/src/Microsoft.AspNet.Http.Core/ApplicationBuilder.cs +++ b/src/Microsoft.AspNet.Http.Core/ApplicationBuilder.cs @@ -36,15 +36,15 @@ namespace Microsoft.AspNet.Builder } } - public IServerInformation Server + public object Server { get { - return GetProperty(Constants.BuilderProperties.ServerInformation); + return GetProperty(Constants.BuilderProperties.ServerInformation); } set { - SetProperty(Constants.BuilderProperties.ServerInformation, value); + SetProperty(Constants.BuilderProperties.ServerInformation, value); } } diff --git a/src/Microsoft.AspNet.Http/IApplicationBuilder.cs b/src/Microsoft.AspNet.Http/IApplicationBuilder.cs index bed7c50f0d..cfecfd9728 100644 --- a/src/Microsoft.AspNet.Http/IApplicationBuilder.cs +++ b/src/Microsoft.AspNet.Http/IApplicationBuilder.cs @@ -10,7 +10,7 @@ namespace Microsoft.AspNet.Builder { IServiceProvider ApplicationServices { get; set; } - IServerInformation Server { get; set; } + object Server { get; set; } IDictionary Properties { get; set; } diff --git a/src/Microsoft.AspNet.Http/IServerInformation.cs b/src/Microsoft.AspNet.Http/IServerInformation.cs deleted file mode 100644 index e99042e637..0000000000 --- a/src/Microsoft.AspNet.Http/IServerInformation.cs +++ /dev/null @@ -1,10 +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. - -namespace Microsoft.AspNet.Builder -{ - public interface IServerInformation - { - string Name { get; } - } -}