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

View File

@@ -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();
}
}

View File

@@ -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; }