// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information. using System; using Microsoft.AspNet.SignalR.Configuration; using Microsoft.AspNet.SignalR.Hubs; using Microsoft.AspNet.SignalR.Infrastructure; namespace Microsoft.AspNet.SignalR { /// /// Provides access to default host information. /// public static class GlobalHost { private static readonly Lazy _defaultResolver = new Lazy(() => new DefaultDependencyResolver()); private static IDependencyResolver _resolver; /// /// Gets or sets the the default /// public static IDependencyResolver DependencyResolver { get { return _resolver ?? _defaultResolver.Value; } set { _resolver = value; } } /// /// Gets the default /// public static IConfigurationManager Configuration { get { return DependencyResolver.Resolve(); } } /// /// Gets the default /// public static IConnectionManager ConnectionManager { get { return DependencyResolver.Resolve(); } } /// /// /// public static IHubPipeline HubPipeline { get { return DependencyResolver.Resolve(); } } } }