mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-08 00:14:31 +08:00
Renaming OwinMiddleware to OwinMiddlewareRegistration
Since there is a 1 to n association between such objects and middlewares (that are actually just the delegates that run in the pipeline) the terminology was confusing.
This commit is contained in:
@@ -10,9 +10,9 @@ namespace Orchard.Owin {
|
||||
/// </remarks>
|
||||
public interface IOwinMiddlewareProvider : IDependency {
|
||||
/// <summary>
|
||||
/// Gets Owin middlewares that will be injected into the Orchard Owin pipeline.
|
||||
/// Gets <see cref="OwinMiddlewareRegistration"/> objects that will be used to alter the Orchard Owin pipeline.
|
||||
/// </summary>
|
||||
/// <returns>Owin middlewares that will be injected into the Orchard Owin pipeline.</returns>
|
||||
IEnumerable<OwinMiddleware> GetOwinMiddlewares();
|
||||
/// <returns><see cref="OwinMiddlewareRegistration"/> objects that will be used to alter the Orchard Owin pipeline.</returns>
|
||||
IEnumerable<OwinMiddlewareRegistration> GetOwinMiddlewares();
|
||||
}
|
||||
}
|
@@ -3,10 +3,10 @@ using Owin;
|
||||
|
||||
namespace Orchard.Owin {
|
||||
/// <summary>
|
||||
/// An Owin middleware representation that can make changes to the Owin pipeline, like registering middlewares to be injected into the Orchard
|
||||
/// An Owin middleware registration that can make changes to the Owin pipeline, like registering middlewares to be injected into the Orchard
|
||||
/// Owin pipeline.
|
||||
/// </summary>
|
||||
public class OwinMiddleware {
|
||||
public class OwinMiddlewareRegistration {
|
||||
/// <summary>
|
||||
/// Gets or sets the delegate that you can use to make changes to the Owin pipeline, like registering middlewares to be injected into
|
||||
/// the Orchard Owin pipeline.
|
||||
@@ -15,7 +15,7 @@ namespace Orchard.Owin {
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the priority value that decides the order in which such objects are processed. I.e. "0" will run before "10",
|
||||
/// but middlewares without a priority value will run before the ones that have it set.
|
||||
/// but registrations without a priority value will run before the ones that have it set.
|
||||
/// Note that this priority notation is the same as the one for shape placement (so you can e.g. use ":before").
|
||||
/// </summary>
|
||||
public string Priority { get; set; }
|
Reference in New Issue
Block a user