Skip to content

Commit

Permalink
Rename AddApiVersionEnrichment to AddApiVersion (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierjohn committed Jan 24, 2024
1 parent 01ae08f commit 5a94471
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public static class ServiceLevelIndicatorServiceCollectionExtensions
{
public static IServiceLevelIndicatorBuilder AddApiVersionEnrichment(this IServiceLevelIndicatorBuilder builder)
public static IServiceLevelIndicatorBuilder AddApiVersion(this IServiceLevelIndicatorBuilder builder)
{
ArgumentNullException.ThrowIfNull(builder);
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IEnrichment<WebEnrichmentContext>, ApiVersionEnrichment>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private async Task<IHost> CreateHost() =>
options.LocationId = ServiceLevelIndicator.CreateLocationId("public", "West US 3");
})
.AddMvc()
.AddApiVersionEnrichment();
.AddApiVersion();
})
.Configure(app =>
{
Expand Down Expand Up @@ -234,7 +234,7 @@ private async Task<IHost> CreateHostWithDefaultApiVersion() =>
options.LocationId = ServiceLevelIndicator.CreateLocationId("public", "West US 3");
})
.AddMvc()
.AddApiVersionEnrichment();
.AddApiVersion();
})
.Configure(app =>
{
Expand Down
2 changes: 1 addition & 1 deletion sample/WebApiVersioned/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
options.LocationId = ServiceLevelIndicator.CreateLocationId("public", "westus2");
})
.AddMvc()
.AddApiVersionEnrichment();
.AddApiVersion();

var app = builder.Build();

Expand Down

0 comments on commit 5a94471

Please sign in to comment.