added the beginning of a service stack abstraction

This commit is contained in:
LukePulverenti
2013-03-01 21:44:46 -05:00
parent 9f8aa880aa
commit 7bca933af0
13 changed files with 99 additions and 29 deletions

View File

@@ -511,6 +511,11 @@ namespace MediaBrowser.Common.Implementations.HttpServer
EndpointHost.ConfigureHost(this, ServerName, CreateServiceManager());
ContentTypeFilters.Register(ContentType.ProtoBuf, (reqCtx, res, stream) => ProtobufSerializer.SerializeToStream(res, stream), (type, stream) => ProtobufSerializer.DeserializeFromStream(stream, type));
foreach (var route in services.SelectMany(i => i.GetRoutes()))
{
Routes.Add(route.RequestType, route.Path, route.Verbs);
}
Init();
}
}