mirror of https://github.com/dapr/dotnet-sdk.git
Fixing aspnetcore samples (#71)
This commit is contained in:
parent
ee1ab3df9c
commit
61f6e7d681
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Builder
|
|||
public static class DaprEndpointRouteBuilderExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Maps an endpoint that will respond to requests to <c>/actions/subscribe</c> from the
|
||||
/// Maps an endpoint that will respond to requests to <c>/dapr/subscribe</c> from the
|
||||
/// Dapr runtime.
|
||||
/// </summary>
|
||||
/// <param name="endpoints">The <see cref="IEndpointRouteBuilder" />.</param>
|
||||
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Builder
|
|||
throw new System.ArgumentNullException(nameof(endpoints));
|
||||
}
|
||||
|
||||
return endpoints.MapGet("actions/subscribe", async context =>
|
||||
return endpoints.MapGet("dapr/subscribe", async context =>
|
||||
{
|
||||
var dataSource = context.RequestServices.GetRequiredService<EndpointDataSource>();
|
||||
var entries = dataSource.Endpoints
|
||||
|
|
|
@ -11,6 +11,6 @@ namespace Microsoft.Dapr
|
|||
{
|
||||
public const string StatePath = "/v1.0/state";
|
||||
|
||||
public static string DefaultPort => Environment.GetEnvironmentVariable("ACTIONS_PORT") ?? "3500";
|
||||
public static string DefaultPort => Environment.GetEnvironmentVariable("DAPR_PORT") ?? "3500";
|
||||
}
|
||||
}
|
|
@ -22,7 +22,7 @@ namespace Microsoft.Dapr.AspNetCore.IntegrationTest
|
|||
{
|
||||
var httpClient = factory.CreateClient();
|
||||
|
||||
var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/actions/subscribe");
|
||||
var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost/dapr/subscribe");
|
||||
var response = await httpClient.SendAsync(request);
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
||||
|
|
Loading…
Reference in New Issue