The Free Software Media System - Server Backend & API
implement chrome media session api
Luke Pulverenti5181b31886f5
diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csprojindex b1601df051..fec0c22944 100644--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj@@ -215,6 +215,7 @@<Compile Include="Security\RegRecord.cs" /><Compile Include="ServerManager\ServerManager.cs" /><Compile Include="ServerManager\WebSocketConnection.cs" />+ <Compile Include="Services\ServicePath.cs" /><Compile Include="Services\ServiceMethod.cs" /><Compile Include="Services\ResponseHelper.cs" /><Compile Include="Services\HttpResult.cs" />@@ -222,6 +223,8 @@<Compile Include="Services\ServiceHandler.cs" /><Compile Include="Services\ServiceController.cs" /><Compile Include="Services\ServiceExec.cs" />+ <Compile Include="Services\StringMapTypeDeserializer.cs" />+ <Compile Include="Services\UrlExtensions.cs" /><Compile Include="Session\HttpSessionController.cs" /><Compile Include="Session\SessionManager.cs" /><Compile Include="Session\SessionWebSocketListener.cs" />@@ -308,10 +311,6 @@<Project>{2e781478-814d-4a48-9d80-bff206441a65}</Project><Name>MediaBrowser.Server.Implementations</Name></ProjectReference>- <ProjectReference Include="..\ServiceStack\ServiceStack.csproj">- <Project>{680a1709-25eb-4d52-a87f-ee03ffd94baa}</Project>- <Name>ServiceStack</Name>- </ProjectReference><ProjectReference Include="..\SocketHttpListener.Portable\SocketHttpListener.Portable.csproj"><Project>{4f26d5d8-a7b0-42b3-ba42-7cb7d245934e}</Project><Name>SocketHttpListener.Portable</Name>diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex 8ecf4ad4d6..c65289e133 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -2,7 +2,6 @@using MediaBrowser.Controller.Configuration;using MediaBrowser.Controller.Net;using MediaBrowser.Model.Logging;-using ServiceStack;using System;using System.Collections.Generic;using System.IO;diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.csindex 20b345fa1e..6bfd831100 100644--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -16,7 +16,6 @@ using Emby.Server.Implementations.HttpServer;using Emby.Server.Implementations.Services;using MediaBrowser.Model.IO;using MediaBrowser.Model.Services;-using ServiceStack;using IRequest = MediaBrowser.Model.Services.IRequest;using MimeTypes = MediaBrowser.Model.Net.MimeTypes;using StreamWriter = Emby.Server.Implementations.HttpServer.StreamWriter;diff --git a/Emby.Server.Implementations/Services/HttpResult.cs b/Emby.Server.Implementations/Services/HttpResult.csindex 585c3e4f8f..dfad09f7b3 100644--- a/Emby.Server.Implementations/Services/HttpResult.cs+++ b/Emby.Server.Implementations/Services/HttpResult.cs@@ -4,7 +4,6 @@ using System.Net;using System.Threading;using System.Threading.Tasks;using MediaBrowser.Model.Services;-using ServiceStack;namespace Emby.Server.Implementations.Services{diff --git a/Emby.Server.Implementations/Services/ServiceController.cs b/Emby.Server.Implementations/Services/ServiceController.csindex da8af89c8b..d283bf81f6 100644--- a/Emby.Server.Implementations/Services/ServiceController.cs+++ b/Emby.Server.Implementations/Services/ServiceController.cs@@ -5,7 +5,6 @@ using System.Threading.Tasks;using Emby.Server.Implementations.HttpServer;using MediaBrowser.Model.Logging;using MediaBrowser.Model.Services;-using ServiceStack;namespace Emby.Server.Implementations.Services{@@ -108,7 +107,7 @@ namespace Emby.Server.Implementations.Servicesif (!restPath.IsValid)throw new NotSupportedException(string.Format(- "RestPath '{0}' on Type '{1}' is not Valid", attr.Path, requestType.GetOperationName()));+ "RestPath '{0}' on Type '{1}' is not Valid", attr.Path, requestType.GetMethodName()));RegisterRestPath(restPath);}@@ -119,10 +118,10 @@ namespace Emby.Server.Implementations.Servicespublic void RegisterRestPath(RestPath restPath){if (!restPath.Path.StartsWith("/"))- throw new ArgumentException(string.Format("Route '{0}' on '{1}' must start with a '/'", restPath.Path, restPath.RequestType.GetOperationName()));+ throw new ArgumentException(string.Format("Route '{0}' on '{1}' must start with a '/'", restPath.Path, restPath.RequestType.GetMethodName()));if (restPath.Path.IndexOfAny(InvalidRouteChars) != -1)throw new ArgumentException(string.Format("Route '{0}' on '{1}' contains invalid chars. " +- "See https://github.com/ServiceStack/ServiceStack/wiki/Routing for info on valid routes.", restPath.Path, restPath.RequestType.GetOperationName()));+ "See https://github.com/ServiceStack/ServiceStack/wiki/Routing for info on valid routes.", restPath.Path, restPath.RequestType.GetMethodName()));List<RestPath> pathsAtFirstMatch;if (!RestPathMap.TryGetValue(restPath.FirstMatchHashKey, out pathsAtFirstMatch))@@ -210,7 +209,7 @@ namespace Emby.Server.Implementations.Servicesreq.Dto = requestDto;//Executes the service and returns the result- var response = await ServiceExecGeneral.Execute(serviceType, req, service, requestDto, requestType.GetOperationName()).ConfigureAwait(false);+ var response = await ServiceExecGeneral.Execute(serviceType, req, service, requestDto, requestType.GetMethodName()).ConfigureAwait(false);return response;}diff --git a/Emby.Server.Implementations/Services/ServiceExec.cs b/Emby.Server.Implementations/Services/ServiceExec.csindex 59af3078f7..e0b5e69c09 100644--- a/Emby.Server.Implementations/Services/ServiceExec.cs+++ b/Emby.Server.Implementations/Services/ServiceExec.cs@@ -5,7 +5,6 @@ using System.Linq.Expressions;using System.Reflection;using System.Threading.Tasks;using MediaBrowser.Model.Services;-using ServiceStack;namespace Emby.Server.Implementations.Services{@@ -84,7 +83,7 @@ namespace Emby.Server.Implementations.Services}var expectedMethodName = actionName.Substring(0, 1) + actionName.Substring(1).ToLower();- throw new NotImplementedException(string.Format("Could not find method named {1}({0}) or Any({0}) on Service {2}", requestDto.GetType().GetOperationName(), expectedMethodName, serviceType.GetOperationName()));+ throw new NotImplementedException(string.Format("Could not find method named {1}({0}) or Any({0}) on Service {2}", requestDto.GetType().GetMethodName(), expectedMethodName, serviceType.GetMethodName()));}public static List<ServiceMethod> Reset(Type serviceType)@@ -99,7 +98,7 @@ namespace Emby.Server.Implementations.Servicesvar requestType = args[0].ParameterType;var actionCtx = new ServiceMethod{- Id = ServiceMethod.Key(serviceType, actionName, requestType.GetOperationName())+ Id = ServiceMethod.Key(serviceType, actionName, requestType.GetMethodName())};trydiff --git a/Emby.Server.Implementations/Services/ServiceHandler.cs b/Emby.Server.Implementations/Services/ServiceHandler.csindex 93126426c6..8b59b48430 100644--- a/Emby.Server.Implementations/Services/ServiceHandler.cs+++ b/Emby.Server.Implementations/Services/ServiceHandler.cs@@ -5,7 +5,6 @@ using System.Threading.Tasks;using Emby.Server.Implementations.HttpServer;using MediaBrowser.Model.Logging;using MediaBrowser.Model.Services;-using ServiceStack;namespace Emby.Server.Implementations.Services{diff --git a/ServiceStack/RestPath.cs b/Emby.Server.Implementations/Services/ServicePath.cssimilarity index 99%rename from ServiceStack/RestPath.csrename to Emby.Server.Implementations/Services/ServicePath.csindex afd1f73e1a..255b209192 100644--- a/ServiceStack/RestPath.cs+++ b/Emby.Server.Implementations/Services/ServicePath.cs@@ -5,9 +5,8 @@ using System.Linq;using System.Reflection;using System.Text;using MediaBrowser.Model.Logging;-using ServiceStack.Serialization;-namespace ServiceStack+namespace Emby.Server.Implementations.Services{public class RestPath{@@ -494,7 +493,7 @@ namespace ServiceStack}throw new ArgumentException("Could not find property "- + variableName + " on " + RequestType.GetOperationName());+ + variableName + " on " + RequestType.GetMethodName());}var value = requestComponents.Length > pathIx ? requestComponents[pathIx] : null; //wildcard has arg mismatchdiff --git a/ServiceStack/StringMapTypeDeserializer.cs b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cssimilarity index 96%rename from ServiceStack/StringMapTypeDeserializer.csrename to Emby.Server.Implementations/Services/StringMapTypeDeserializer.csindex 82724fc4a8..fc1cf4ed99 100644--- a/ServiceStack/StringMapTypeDeserializer.cs+++ b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs@@ -1,10 +1,9 @@using System;using System.Collections.Generic;-using System.Runtime.Serialization;using System.Linq;using System.Reflection;-namespace ServiceStack.Serialization+namespace Emby.Server.Implementations.Services{/// <summary>/// Serializer cache of delegates required to create a type from a string map (e.g. for REST urls)@@ -30,7 +29,6 @@ namespace ServiceStack.Serializationpublic Func<string, object> GetParseFn(Type propertyType){- //Don't JSV-decode string values for string propertiesif (propertyType == typeof(string))return s => s;diff --git a/ServiceStack/UrlExtensions.cs b/Emby.Server.Implementations/Services/UrlExtensions.cssimilarity index 90%rename from ServiceStack/UrlExtensions.csrename to Emby.Server.Implementations/Services/UrlExtensions.csindex 7b5a50ef17..c7346789a0 100644--- a/ServiceStack/UrlExtensions.cs+++ b/Emby.Server.Implementations/Services/UrlExtensions.cs@@ -1,6 +1,6 @@using System;-namespace ServiceStack+namespace Emby.Server.Implementations.Services{/// <summary>/// Donated by Ivan Korneliuk from his post:@@ -10,7 +10,7 @@ namespace ServiceStack/// </summary>public static class UrlExtensions{- public static string GetOperationName(this Type type)+ public static string GetMethodName(this Type type){var typeName = type.FullName != null //can be null, e.g. generic types? LeftPart(type.FullName, "[[") //Generic Fullnamediff --git a/MediaBrowser.Mono.sln b/MediaBrowser.Mono.slnindex 35c3962002..66ae294a7f 100644--- a/MediaBrowser.Mono.sln+++ b/MediaBrowser.Mono.sln@@ -47,8 +47,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Drawing.ImageMagick",EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Drawing.Net", "Emby.Drawing.Net\Emby.Drawing.Net.csproj", "{C97A239E-A96C-4D64-A844-CCF8CC30AECB}"EndProject-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStack", "ServiceStack\ServiceStack.csproj", "{680A1709-25EB-4D52-A87F-EE03FFD94BAA}"-EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SocketHttpListener.Portable", "SocketHttpListener.Portable\SocketHttpListener.Portable.csproj", "{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}"EndProjectGlobal@@ -386,22 +384,6 @@ Global{C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Signed|Any CPU.Build.0 = Release|Any CPU{C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Signed|x86.ActiveCfg = Release|Any CPU{C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Signed|x86.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Any CPU.Build.0 = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|x86.ActiveCfg = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|x86.Build.0 = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Any CPU.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Any CPU.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|x86.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|x86.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Any CPU.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Any CPU.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|x86.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|x86.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Any CPU.ActiveCfg = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Any CPU.Build.0 = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|x86.ActiveCfg = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|x86.Build.0 = Signed|Any CPU{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}.Debug|Any CPU.Build.0 = Debug|Any CPU{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}.Debug|x86.ActiveCfg = Debug|Any CPUdiff --git a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.csindex ec31824db9..30617643ac 100644--- a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs+++ b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs@@ -45,6 +45,7 @@ namespace MediaBrowser.Providers.Musicpublic async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(AlbumInfo searchInfo, CancellationToken cancellationToken){var releaseId = searchInfo.GetReleaseId();+ var releaseGroupId = searchInfo.GetReleaseGroupId();string url = null;var isNameSearch = false;@@ -53,6 +54,10 @@ namespace MediaBrowser.Providers.Music{url = string.Format("/ws/2/release/?query=reid:{0}", releaseId);}+ else if (!string.IsNullOrEmpty(releaseGroupId))+ {+ url = string.Format("/ws/2/release?release-group={0}", releaseGroupId);+ }else{var artistMusicBrainzId = searchInfo.GetMusicBrainzArtistId();@@ -131,7 +136,14 @@ namespace MediaBrowser.Providers.MusicItem = new MusicAlbum()};- if (string.IsNullOrEmpty(releaseId))+ // If we have a release group Id but not a release Id...+ if (string.IsNullOrWhiteSpace(releaseId) && !string.IsNullOrWhiteSpace(releaseGroupId))+ {+ releaseId = await GetReleaseIdFromReleaseGroupId(releaseGroupId, cancellationToken).ConfigureAwait(false);+ result.HasMetadata = true;+ }++ if (string.IsNullOrWhiteSpace(releaseId)){var artistMusicBrainzId = id.GetMusicBrainzArtistId();@@ -139,13 +151,13 @@ namespace MediaBrowser.Providers.Musicif (releaseResult != null){- if (!string.IsNullOrEmpty(releaseResult.ReleaseId))+ if (!string.IsNullOrWhiteSpace(releaseResult.ReleaseId)){releaseId = releaseResult.ReleaseId;result.HasMetadata = true;}- if (!string.IsNullOrEmpty(releaseResult.ReleaseGroupId))+ if (!string.IsNullOrWhiteSpace(releaseResult.ReleaseGroupId)){releaseGroupId = releaseResult.ReleaseGroupId;result.HasMetadata = true;@@ -157,13 +169,13 @@ namespace MediaBrowser.Providers.Music}// If we have a release Id but not a release group Id...- if (!string.IsNullOrEmpty(releaseId) && string.IsNullOrEmpty(releaseGroupId))+ if (!string.IsNullOrWhiteSpace(releaseId) && string.IsNullOrWhiteSpace(releaseGroupId)){- releaseGroupId = await GetReleaseGroupId(releaseId, cancellationToken).ConfigureAwait(false);+ releaseGroupId = await GetReleaseGroupFromReleaseId(releaseId, cancellationToken).ConfigureAwait(false);result.HasMetadata = true;}- if (!string.IsNullOrEmpty(releaseId) || !string.IsNullOrEmpty(releaseGroupId))+ if (!string.IsNullOrWhiteSpace(releaseId) || !string.IsNullOrWhiteSpace(releaseGroupId)){result.HasMetadata = true;}@@ -411,13 +423,42 @@ namespace MediaBrowser.Providers.Music}}+ private async Task<string> GetReleaseIdFromReleaseGroupId(string releaseGroupId, CancellationToken cancellationToken)+ {+ var url = string.Format("/ws/2/release?release-group={0}", releaseGroupId);++ using (var stream = await GetMusicBrainzResponse(url, true, cancellationToken).ConfigureAwait(false))+ {+ using (var oReader = new StreamReader(stream, Encoding.UTF8))+ {+ var settings = _xmlSettings.Create(false);++ settings.CheckCharacters = false;+ settings.IgnoreProcessingInstructions = true;+ settings.IgnoreComments = true;++ using (var reader = XmlReader.Create(oReader, settings))+ {+ var result = ReleaseResult.Parse(reader).FirstOrDefault();++ if (result != null)+ {+ return result.ReleaseId;+ }+ }+ }+ }++ return null;+ }+/// <summary>/// Gets the release group id internal./// </summary>/// <param name="releaseEntryId">The release entry id.</param>/// <param name="cancellationToken">The cancellation token.</param>/// <returns>Task{System.String}.</returns>- private async Task<string> GetReleaseGroupId(string releaseEntryId, CancellationToken cancellationToken)+ private async Task<string> GetReleaseGroupFromReleaseId(string releaseEntryId, CancellationToken cancellationToken){var url = string.Format("/ws/2/release-group/?query=reid:{0}", releaseEntryId);diff --git a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csprojindex 325011adff..27001d5961 100644--- a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj+++ b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj@@ -200,10 +200,6 @@<Project>{21002819-c39a-4d3e-be83-2a276a77fb1f}</Project><Name>RSSDP</Name></ProjectReference>- <ProjectReference Include="..\ServiceStack\ServiceStack.csproj">- <Project>{680a1709-25eb-4d52-a87f-ee03ffd94baa}</Project>- <Name>ServiceStack</Name>- </ProjectReference><ProjectReference Include="..\SocketHttpListener.Portable\SocketHttpListener.Portable.csproj"><Project>{4f26d5d8-a7b0-42b3-ba42-7cb7d245934e}</Project><Name>SocketHttpListener.Portable</Name>diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csprojindex 7badccef35..8a75bf67a4 100644--- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj+++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj@@ -1155,10 +1155,6 @@<Project>{21002819-c39a-4d3e-be83-2a276a77fb1f}</Project><Name>RSSDP</Name></ProjectReference>- <ProjectReference Include="..\ServiceStack\ServiceStack.csproj">- <Project>{680a1709-25eb-4d52-a87f-ee03ffd94baa}</Project>- <Name>ServiceStack</Name>- </ProjectReference><ProjectReference Include="..\SocketHttpListener.Portable\SocketHttpListener.Portable.csproj"><Project>{4f26d5d8-a7b0-42b3-ba42-7cb7d245934e}</Project><Name>SocketHttpListener.Portable</Name>diff --git a/MediaBrowser.sln b/MediaBrowser.slnindex 292d0345cf..b9933969f5 100644--- a/MediaBrowser.sln+++ b/MediaBrowser.sln@@ -78,8 +78,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Drawing.ImageMagick",EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Drawing.Net", "Emby.Drawing.Net\Emby.Drawing.Net.csproj", "{C97A239E-A96C-4D64-A844-CCF8CC30AECB}"EndProject-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStack", "ServiceStack\ServiceStack.csproj", "{680A1709-25EB-4D52-A87F-EE03FFD94BAA}"-EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SocketHttpListener.Portable", "SocketHttpListener.Portable\SocketHttpListener.Portable.csproj", "{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}"EndProjectGlobal@@ -1061,46 +1059,6 @@ Global{C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Signed|x64.Build.0 = Release|Any CPU{C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Signed|x86.ActiveCfg = Release|Any CPU{C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Signed|x86.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Any CPU.Build.0 = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Win32.ActiveCfg = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|Win32.Build.0 = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|x64.ActiveCfg = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|x64.Build.0 = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|x86.ActiveCfg = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Debug|x86.Build.0 = Debug|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Any CPU.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Any CPU.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Mixed Platforms.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Mixed Platforms.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Win32.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|Win32.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|x64.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|x64.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|x86.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release Mono|x86.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Any CPU.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Any CPU.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Mixed Platforms.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Win32.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|Win32.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|x64.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|x64.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|x86.ActiveCfg = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Release|x86.Build.0 = Release|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Any CPU.ActiveCfg = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Any CPU.Build.0 = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Mixed Platforms.ActiveCfg = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Mixed Platforms.Build.0 = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Win32.ActiveCfg = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|Win32.Build.0 = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|x64.ActiveCfg = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|x64.Build.0 = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|x86.ActiveCfg = Signed|Any CPU- {680A1709-25EB-4D52-A87F-EE03FFD94BAA}.Signed|x86.Build.0 = Signed|Any CPU{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}.Debug|Any CPU.Build.0 = Debug|Any CPU{4F26D5D8-A7B0-42B3-BA42-7CB7D245934E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPUdiff --git a/ServiceStack/Properties/AssemblyInfo.cs b/ServiceStack/Properties/AssemblyInfo.csdeleted file mode 100644index 6073dc0b44..0000000000--- a/ServiceStack/Properties/AssemblyInfo.cs+++ /dev/null@@ -1,25 +0,0 @@-using System.Reflection;-using System.Runtime.InteropServices;--// General Information about an assembly is controlled through the following-// set of attributes. Change these attribute values to modify the information-// associated with an assembly.-[assembly: AssemblyTitle("ServiceStack")]-[assembly: AssemblyDescription("")]-[assembly: AssemblyConfiguration("")]-[assembly: AssemblyCompany("Service Stack LLC")]-[assembly: AssemblyProduct("ServiceStack")]-[assembly: AssemblyCopyright("Copyright (c) ServiceStack 2016")]-[assembly: AssemblyTrademark("Service Stack")]-[assembly: AssemblyCulture("")]--// Setting ComVisible to false makes the types in this assembly not visible-// to COM components. If you need to access a type in this assembly from-// COM, set the ComVisible attribute to true on that type.-[assembly: ComVisible(false)]--// The following GUID is for the ID of the typelib if this project is exposed to COM-[assembly: Guid("06704d66-af8e-411f-8260-8d05de5ce6ad")]--[assembly: AssemblyVersion("4.0.0.0")]-[assembly: AssemblyFileVersion("4.0.0.0")]diff --git a/ServiceStack/ServiceStack.csproj b/ServiceStack/ServiceStack.csprojdeleted file mode 100644index 33226971e9..0000000000--- a/ServiceStack/ServiceStack.csproj+++ /dev/null@@ -1,115 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">- <PropertyGroup>- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>- <ProductVersion>9.0.30729</ProductVersion>- <SchemaVersion>2.0</SchemaVersion>- <ProjectGuid>{680A1709-25EB-4D52-A87F-EE03FFD94BAA}</ProjectGuid>- <OutputType>Library</OutputType>- <AppDesignerFolder>Properties</AppDesignerFolder>- <RootNamespace>ServiceStack</RootNamespace>- <AssemblyName>ServiceStack</AssemblyName>- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>- <TargetFrameworkProfile>Profile7</TargetFrameworkProfile>- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>- <FileAlignment>512</FileAlignment>- <FileUpgradeFlags>- </FileUpgradeFlags>- <OldToolsVersion>3.5</OldToolsVersion>- <UpgradeBackupLocation />- <PublishUrl>publish\</PublishUrl>- <Install>true</Install>- <InstallFrom>Disk</InstallFrom>- <UpdateEnabled>false</UpdateEnabled>- <UpdateMode>Foreground</UpdateMode>- <UpdateInterval>7</UpdateInterval>- <UpdateIntervalUnits>Days</UpdateIntervalUnits>- <UpdatePeriodically>false</UpdatePeriodically>- <UpdateRequired>false</UpdateRequired>- <MapFileExtensions>true</MapFileExtensions>- <ApplicationRevision>0</ApplicationRevision>- <ApplicationVersion>1.0.0.%2a</ApplicationVersion>- <IsWebBootstrapper>false</IsWebBootstrapper>- <UseApplicationTrust>false</UseApplicationTrust>- <BootstrapperEnabled>true</BootstrapperEnabled>- </PropertyGroup>- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">- <DebugSymbols>True</DebugSymbols>- <DebugType>full</DebugType>- <Optimize>False</Optimize>- <OutputPath>bin\Debug\</OutputPath>- <DefineConstants>TRACE;DEBUG;MONO</DefineConstants>- <ErrorReport>prompt</ErrorReport>- <WarningLevel>4</WarningLevel>- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>- <Prefer32Bit>false</Prefer32Bit>- </PropertyGroup>- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">- <DebugType>pdbonly</DebugType>- <Optimize>True</Optimize>- <OutputPath>bin\Release\</OutputPath>- <DefineConstants>TRACE</DefineConstants>- <ErrorReport>prompt</ErrorReport>- <WarningLevel>4</WarningLevel>- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>- <DocumentationFile>- </DocumentationFile>- <Prefer32Bit>false</Prefer32Bit>- </PropertyGroup>- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Signed|AnyCPU'">- <OutputPath>bin\Signed\</OutputPath>- <DefineConstants>TRACE</DefineConstants>- <DocumentationFile>bin\Release\ServiceStack.XML</DocumentationFile>- <Optimize>true</Optimize>- <DebugType>pdbonly</DebugType>- <PlatformTarget>AnyCPU</PlatformTarget>- <ErrorReport>prompt</ErrorReport>- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>- <Prefer32Bit>false</Prefer32Bit>- </PropertyGroup>- <ItemGroup>- <Compile Include="StringMapTypeDeserializer.cs" />- <Compile Include="UrlExtensions.cs" />- <Compile Include="RestPath.cs" />- <Compile Include="Properties\AssemblyInfo.cs" />- </ItemGroup>- <ItemGroup>- <None Include="packages.config" />- </ItemGroup>- <ItemGroup>- <BootstrapperPackage Include="Microsoft.Net.Client.3.5">- <Visible>False</Visible>- <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>- <Install>false</Install>- </BootstrapperPackage>- <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">- <Visible>False</Visible>- <ProductName>.NET Framework 3.5 SP1</ProductName>- <Install>true</Install>- </BootstrapperPackage>- <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">- <Visible>False</Visible>- <ProductName>Windows Installer 3.1</ProductName>- <Install>true</Install>- </BootstrapperPackage>- </ItemGroup>- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.- Other similar extension points exist, see Microsoft.Common.targets.- <Target Name="BeforeBuild">- </Target>- <Target Name="AfterBuild">- </Target>- -->- <ItemGroup>- <ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj">- <Project>{9142eefa-7570-41e1-bfcc-468bb571af2f}</Project>- <Name>MediaBrowser.Common</Name>- </ProjectReference>- <ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj">- <Project>{7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b}</Project>- <Name>MediaBrowser.Model</Name>- </ProjectReference>- </ItemGroup>-</Project>\ No newline at end of filediff --git a/ServiceStack/ServiceStack.nuget.targets b/ServiceStack/ServiceStack.nuget.targetsdeleted file mode 100644index e69ce0e64f..0000000000--- a/ServiceStack/ServiceStack.nuget.targets+++ /dev/null@@ -1,6 +0,0 @@-<?xml version="1.0" encoding="utf-8" standalone="no"?>-<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">- <Target Name="EmitMSBuildWarning" BeforeTargets="Build">- <Warning Text="Packages containing MSBuild targets and props files cannot be fully installed in projects targeting multiple frameworks. The MSBuild targets and props files have been ignored." />- </Target>-</Project>\ No newline at end of filediff --git a/ServiceStack/packages.config b/ServiceStack/packages.configdeleted file mode 100644index 6b8deb9c96..0000000000--- a/ServiceStack/packages.config+++ /dev/null@@ -1,3 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<packages>-</packages>\ No newline at end of filediff --git a/ServiceStack/project.json b/ServiceStack/project.jsondeleted file mode 100644index fbbe9eaf32..0000000000--- a/ServiceStack/project.json+++ /dev/null@@ -1,17 +0,0 @@-{- "frameworks":{- "netstandard1.6":{- "dependencies":{- "NETStandard.Library":"1.6.0",- }- },- ".NETPortable,Version=v4.5,Profile=Profile7":{- "buildOptions": {- "define": [ ]- },- "frameworkAssemblies":{-- }- }- }-}\ No newline at end of file