diff --git a/src/Microsoft.AspNet.Hosting/HostingServices.cs b/src/Microsoft.AspNet.Hosting/HostingServices.cs index e0995468d9..0a0950d559 100644 --- a/src/Microsoft.AspNet.Hosting/HostingServices.cs +++ b/src/Microsoft.AspNet.Hosting/HostingServices.cs @@ -93,6 +93,21 @@ namespace Microsoft.AspNet.Hosting { return false; } + + public IDisposable BeginScope(object state) + { + return NullScope.Instance; + } + } + + private class NullScope : IDisposable + { + public static NullScope Instance = new NullScope(); + + public void Dispose() + { + // intentionally does nothing + } } } } \ No newline at end of file