diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-02-13 16:05:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-13 16:05:04 -0500 |
| commit | 252debd2813484dc67ce4a78558f80d16959d604 (patch) | |
| tree | 0dc8b9a432b167e7db1fd5be16c20b10fec3b0cf /ServiceStack/ServiceStackHost.cs | |
| parent | 273aa822cfc37558883dbdd17647829abcf34758 (diff) | |
| parent | 5508c388f54e2abe8abab8c0c2453c26a9670a0c (diff) | |
Merge pull request #2467 from MediaBrowser/dev
Dev
Diffstat (limited to 'ServiceStack/ServiceStackHost.cs')
| -rw-r--r-- | ServiceStack/ServiceStackHost.cs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/ServiceStack/ServiceStackHost.cs b/ServiceStack/ServiceStackHost.cs deleted file mode 100644 index 09fe9a242..000000000 --- a/ServiceStack/ServiceStackHost.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Service Stack LLC. All Rights Reserved. -// License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt - - -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using MediaBrowser.Model.Services; - -namespace ServiceStack -{ - public abstract class ServiceStackHost : IDisposable - { - public static ServiceStackHost Instance { get; protected set; } - - protected ServiceStackHost() - { - GlobalResponseFilters = new List<Action<IRequest, IResponse, object>>(); - } - - public abstract object CreateInstance(Type type); - - public List<Action<IRequest, IResponse, object>> GlobalResponseFilters { get; set; } - - public abstract RouteAttribute[] GetRouteAttributes(Type requestType); - - public abstract Func<string, object> GetParseFn(Type propertyType); - - public abstract void SerializeToJson(object o, Stream stream); - public abstract void SerializeToXml(object o, Stream stream); - public abstract object DeserializeXml(Type type, Stream stream); - public abstract object DeserializeJson(Type type, Stream stream); - - public virtual void Dispose() - { - //JsConfig.Reset(); //Clears Runtime Attributes - - Instance = null; - } - } -} |
