Fixing aspnetcore samples (#71)

This commit is contained in:
Aman Bhardwaj 2019-10-06 16:41:42 +00:00 committed by GitHub
parent ee1ab3df9c
commit 61f6e7d681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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