-
Notifications
You must be signed in to change notification settings - Fork 1
ResourceSpace.Uses
Use ResourceSpace.Uses
to define extra PipelineContributors, URI decorators, and Dependency Injection.
Registers pipeline contributors. Use the titular form, where TPipelineContributor
is a type which implements IPipelineContributor
.
ResourceSpace.Uses.PipelineContributor<StatisticsLoggerContributor>();
Registers a custom dependency with the dependency injection engine. The TServiceType
will then be available via constructor or setter injection to any OpenRasta object (handlers, pipeline contributors, URI decorators etc) that requests it.
ResourceSpace.Uses.CustomDependency<IArticleRepository, ArticleRepository>()
Registers a URI decorator with the resource space. TUriDecorator
must implement IUriDecorator
.
ResourceSpace.Uses.UriDecorator<OpenRasta.Web.UriDecorators.ContentTypeExtensionUriDecorator>