Skip to content

Commit

Permalink
IOcelotPipelineBuilder.Use(): Return IOcelotPipelineBuilder (ThreeMam…
Browse files Browse the repository at this point in the history
  • Loading branch information
lngr authored and thiagoloureiro committed May 4, 2019
1 parent 639011b commit dc4cc14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ocelot/Middleware/Pipeline/IOcelotPipelineBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Ocelot.Middleware.Pipeline
public interface IOcelotPipelineBuilder
{
IServiceProvider ApplicationServices { get; }
OcelotPipelineBuilder Use(Func<OcelotRequestDelegate, OcelotRequestDelegate> middleware);
IOcelotPipelineBuilder Use(Func<OcelotRequestDelegate, OcelotRequestDelegate> middleware);
OcelotRequestDelegate Build();
IOcelotPipelineBuilder New();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Ocelot/Middleware/Pipeline/OcelotPipelineBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public OcelotPipelineBuilder(IOcelotPipelineBuilder builder)

public IServiceProvider ApplicationServices { get; }

public OcelotPipelineBuilder Use(Func<OcelotRequestDelegate, OcelotRequestDelegate> middleware)
public IOcelotPipelineBuilder Use(Func<OcelotRequestDelegate, OcelotRequestDelegate> middleware)
{
_middlewares.Add(middleware);
return this;
Expand Down

0 comments on commit dc4cc14

Please sign in to comment.