creates ServicesCompositionRoot

This commit is contained in:
Shannon
2015-12-21 14:27:36 +01:00
parent 69e1df87df
commit 6593f4eaaa
8 changed files with 75 additions and 58 deletions

View File

@@ -14,25 +14,6 @@ using Umbraco.Core.Strings;
namespace Umbraco.Core.Services
{
/// <summary>
/// These are used currently to return the temporary 'operation' interfaces for services
/// which are used to return a status from operational methods so we can determine if things are
/// cancelled, etc...
///
/// These will be obsoleted in v8 since all real services methods will be changed to have the correct result.
/// </summary>
public static class ServiceWithResultExtensions
{
public static IContentServiceOperations WithResult(this IContentService contentService)
{
return (IContentServiceOperations)contentService;
}
public static IMediaServiceOperations WithResult(this IMediaService mediaService)
{
return (IMediaServiceOperations)mediaService;
}
}
/// <summary>
/// The Umbraco ServiceContext, which provides access to the following services:
/// <see cref="IContentService"/>, <see cref="IContentTypeService"/>, <see cref="IDataTypeService"/>,