Skip to content

Commit d1338cd

Browse files
Merge pull request #872 from OctopusDeploy/nw/public-httprouteextractor
Change HttpRouteExtractor access modifier to public to match interface
2 parents d2af450 + 83065a0 commit d1338cd

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

source/Octopus.Client.Tests/PublicSurfaceAreaFixture.ThePublicSurfaceAreaShouldNotRegress..NETCore.approved.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,15 @@ Octopus.Client.Extensions
16301630
}
16311631
Octopus.Client.HttpRouting
16321632
{
1633+
class HttpRouteExtractor
1634+
Octopus.Client.HttpRouting.IHttpRouteExtractor
1635+
{
1636+
.ctor(Func<Type[]>)
1637+
HttpMethod ExtractHttpMethod(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>)
1638+
HttpMethod ExtractHttpMethod(Octopus.Server.MessageContracts.Base.IRequest<TRequest, TResponse>)
1639+
Uri ExtractHttpRoute(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>)
1640+
Uri ExtractHttpRoute(Octopus.Server.MessageContracts.Base.IRequest<TRequest, TResponse>)
1641+
}
16331642
interface IHttpRouteExtractor
16341643
{
16351644
HttpMethod ExtractHttpMethod(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>)

source/Octopus.Client.Tests/PublicSurfaceAreaFixture.ThePublicSurfaceAreaShouldNotRegress..NETFramework.approved.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,15 @@ Octopus.Client.Extensions
16451645
}
16461646
Octopus.Client.HttpRouting
16471647
{
1648+
class HttpRouteExtractor
1649+
Octopus.Client.HttpRouting.IHttpRouteExtractor
1650+
{
1651+
.ctor(Func<Type[]>)
1652+
HttpMethod ExtractHttpMethod(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>)
1653+
HttpMethod ExtractHttpMethod(Octopus.Server.MessageContracts.Base.IRequest<TRequest, TResponse>)
1654+
Uri ExtractHttpRoute(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>)
1655+
Uri ExtractHttpRoute(Octopus.Server.MessageContracts.Base.IRequest<TRequest, TResponse>)
1656+
}
16481657
interface IHttpRouteExtractor
16491658
{
16501659
HttpMethod ExtractHttpMethod(Octopus.Server.MessageContracts.Base.ICommand<TCommand, TResponse>)

source/Octopus.Server.Client/HttpRouting/HttpRouteExtractor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Octopus.Client.HttpRouting
1919
{
20-
internal class HttpRouteExtractor : IHttpRouteExtractor
20+
public class HttpRouteExtractor : IHttpRouteExtractor
2121
{
2222
private static readonly Regex TokensRegex = new Regex("({.+?})",
2323
RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);

0 commit comments

Comments
 (0)