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:
Lombiq
2015-01-14 23:35:02 +01:00
committed by Zoltán Lehóczky
parent 444ec29d36
commit ef4d5a3ac6
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -10,9 +10,9 @@ namespace Orchard.Owin {
/// </remarks> /// </remarks>
public interface IOwinMiddlewareProvider : IDependency { public interface IOwinMiddlewareProvider : IDependency {
/// <summary> /// <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> /// </summary>
/// <returns>Owin middlewares that will be injected into the Orchard Owin pipeline.</returns> /// <returns><see cref="OwinMiddlewareRegistration"/> objects that will be used to alter the Orchard Owin pipeline.</returns>
IEnumerable<OwinMiddleware> GetOwinMiddlewares(); IEnumerable<OwinMiddlewareRegistration> GetOwinMiddlewares();
} }
} }
@@ -3,10 +3,10 @@ using Owin;
namespace Orchard.Owin { namespace Orchard.Owin {
/// <summary> /// <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. /// Owin pipeline.
/// </summary> /// </summary>
public class OwinMiddleware { public class OwinMiddlewareRegistration {
/// <summary> /// <summary>
/// Gets or sets the delegate that you can use to make changes to the Owin pipeline, like registering middlewares to be injected into /// 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. /// the Orchard Owin pipeline.
@@ -15,7 +15,7 @@ namespace Orchard.Owin {
/// <summary> /// <summary>
/// Gets or sets the priority value that decides the order in which such objects are processed. I.e. "0" will run before "10", /// 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"). /// Note that this priority notation is the same as the one for shape placement (so you can e.g. use ":before").
/// </summary> /// </summary>
public string Priority { get; set; } public string Priority { get; set; }