diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 10:32:54 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 10:32:54 -0500 |
| commit | 33ed929b526acbda696f00f5966917ebd6a9ded2 (patch) | |
| tree | 18e75812ce71274a3e02f800536e8c144f4e5c45 /MediaBrowser.Common/Net | |
| parent | 02634588710f65ce952d0229d7da6b9c9d341492 (diff) | |
| parent | e30b96217333cadb78dcc0a47545afd145c683a7 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Conflicts:
MediaBrowser.ServerApplication/CorePlugins/MediaBrowser.Api.dll
MediaBrowser.ServerApplication/CorePlugins/MediaBrowser.ApiInteraction.Javascript.dll
MediaBrowser.ServerApplication/CorePlugins/MediaBrowser.Server.Sqlite.dll
MediaBrowser.ServerApplication/CorePlugins/MediaBrowser.Server.WorldWeatherOnline.dll
MediaBrowser.ServerApplication/CorePlugins/MediaBrowser.WebDashboard.dll
Diffstat (limited to 'MediaBrowser.Common/Net')
| -rw-r--r-- | MediaBrowser.Common/Net/HttpServer.cs | 22 | ||||
| -rw-r--r-- | MediaBrowser.Common/Net/IUdpServer.cs | 7 |
2 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Net/HttpServer.cs b/MediaBrowser.Common/Net/HttpServer.cs index b09c95da03..20ee615ada 100644 --- a/MediaBrowser.Common/Net/HttpServer.cs +++ b/MediaBrowser.Common/Net/HttpServer.cs @@ -4,6 +4,7 @@ using MediaBrowser.Common.Kernel; using MediaBrowser.Model.Logging; using ServiceStack.Api.Swagger; using ServiceStack.Common.Web; +using ServiceStack.Configuration; using ServiceStack.Logging.NLogger; using ServiceStack.ServiceHost; using ServiceStack.ServiceInterface.Cors; @@ -153,6 +154,8 @@ namespace MediaBrowser.Common.Net DebugMode = true }); } + + container.Adapter = new ContainerAdapter(ApplicationHost); container.Register(Kernel); container.Register(_logger); @@ -464,4 +467,23 @@ namespace MediaBrowser.Common.Net /// <value>The endpoint.</value> public IPEndPoint Endpoint { get; set; } } + + class ContainerAdapter : IContainerAdapter + { + private readonly IApplicationHost _appHost; + + public ContainerAdapter(IApplicationHost appHost) + { + _appHost = appHost; + } + public T Resolve<T>() + { + return _appHost.Resolve<T>(); + } + + public T TryResolve<T>() + { + return _appHost.TryResolve<T>(); + } + } }
\ No newline at end of file diff --git a/MediaBrowser.Common/Net/IUdpServer.cs b/MediaBrowser.Common/Net/IUdpServer.cs new file mode 100644 index 0000000000..01a8ef0218 --- /dev/null +++ b/MediaBrowser.Common/Net/IUdpServer.cs @@ -0,0 +1,7 @@ + +namespace MediaBrowser.Common.Net +{ + public interface IUdpServer + { + } +} |
