Skip to content

Commit d8b12cc

Browse files
authored
Update live with master (dotnet#14811)
Update live with master
2 parents 73e255e + afccd5d commit d8b12cc

File tree

8 files changed

+31
-10
lines changed

8 files changed

+31
-10
lines changed

aspnetcore/fundamentals/startup.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ To configure services and the request processing pipeline without using a `Start
186186

187187
## Extend Startup with startup filters
188188

189-
Use <xref:Microsoft.AspNetCore.Hosting.IStartupFilter> to configure middleware at the beginning or end of an app's [Configure](#the-configure-method) middleware pipeline. `IStartupFilter` is used to create a pipeline of `Configure` methods. [IStartupFilter.Configure](xref:Microsoft.AspNetCore.Hosting.IStartupFilter.Configure*) can set a middleware to run before or after middleware added by libraries.
189+
Use <xref:Microsoft.AspNetCore.Hosting.IStartupFilter>:
190+
191+
* To configure middleware at the beginning or end of an app's [Configure](#the-configure-method) middleware pipeline without an explicit call to `Use{Middleware}`. `IStartupFilter` is used by ASP.NET Core to add defaults to the beginning of the pipeline without having to make the app author explicitly register the default middleware. `IStartupFilter` allows a different component call `Use{Middleware}` on behalf of the app author.
192+
* To create a pipeline of `Configure` methods. [IStartupFilter.Configure](xref:Microsoft.AspNetCore.Hosting.IStartupFilter.Configure*) can set a middleware to run before or after middleware added by libraries.
190193

191194
`IStartupFilter` implements <xref:Microsoft.AspNetCore.Hosting.StartupBase.Configure*>, which receives and returns an `Action<IApplicationBuilder>`. An <xref:Microsoft.AspNetCore.Builder.IApplicationBuilder> defines a class to configure an app's request pipeline. For more information, see [Create a middleware pipeline with IApplicationBuilder](xref:fundamentals/middleware/index#create-a-middleware-pipeline-with-iapplicationbuilder).
192195

aspnetcore/grpc/authn-and-authz/sample/Ticketer/Protos/ticket.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
syntax = "proto3";
22

33
import "google/protobuf/empty.proto";
4-
package Ticket;
4+
5+
package ticket;
56

67
service Ticketer {
78
// Get available ticket count

aspnetcore/grpc/authn-and-authz/sample/TicketerClient/Protos/ticket.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
syntax = "proto3";
22

33
import "google/protobuf/empty.proto";
4-
package Ticket;
4+
5+
package ticket;
56

67
service Ticketer {
78
// Get available ticket count

aspnetcore/grpc/troubleshoot.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,20 @@ A gRPC client app making gRPC calls only needs the concrete client generated:
146146
</ItemGroup>
147147
```
148148

149-
[!INCLUDE[](~/includes/gRPCazure.md)]
149+
## WPF projects unable to generated gRPC C# assets from *\*.proto* files
150+
151+
WPF projects have a [known issue](https://github.com/dotnet/wpf/issues/810) that prevents gRPC code generation from working correctly. Any gRPC types generated in a WPF project by referencing `Grpc.Tools` and *.proto* files will create compilation errors when used:
152+
153+
> error CS0246: The type or namespace name 'MyGrpcServices' could not be found (are you missing a using directive or an assembly reference?)
154+
155+
You can workaround this issue by:
156+
157+
1. Create a new .NET Core class library project.
158+
2. In the new project, add references to enable [C# code generation from *\*.proto* files](xref:grpc/basics#generated-c-assets):
159+
* Add a package reference to [Grpc.Tools](https://www.nuget.org/packages/Grpc.Tools/) package.
160+
* Add *\*.proto* files to the `<Protobuf>` item group.
161+
3. In the WPF application, add a reference to the new project.
162+
163+
The WPF application can use the gRPC generated types from the new class library project.
164+
165+
[!INCLUDE[](~/includes/gRPCazure.md)]

aspnetcore/mvc/models/validation/sample/Models/User.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public class User
1010
#endregion
1111

1212
#region snippet_UserNameProperties
13-
[Remote(action: "VerifyName", controller: "Users", AdditionalFields = nameof(FirstName))]
14-
public string FirstName { get; set; }
1513
[Remote(action: "VerifyName", controller: "Users", AdditionalFields = nameof(LastName))]
14+
public string FirstName { get; set; }
15+
[Remote(action: "VerifyName", controller: "Users", AdditionalFields = nameof(FirstName))]
1616
public string LastName { get; set; }
1717
#endregion
1818

aspnetcore/tutorials/grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
option csharp_namespace = "GrpcGreeter";
44

5-
package Greet;
5+
package greet;
66

77
// The greeting service definition.
88
service Greeter {

aspnetcore/tutorials/grpc/grpc-start/sample/GrpcGreeterClient/Protos/greet.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
option csharp_namespace = "GrpcGreeter";
44

5-
package Greet;
5+
package greet;
66

77
// The greeting service definition.
88
service Greeter {

aspnetcore/tutorials/publish-to-iis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to host an ASP.NET Core app on an IIS server.
55
monikerRange: '>= aspnetcore-2.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 08/08/2019
8+
ms.date: 10/03/2019
99
uid: tutorials/publish-to-iis
1010
---
1111
# Publish an ASP.NET Core app to IIS
@@ -37,7 +37,7 @@ This tutorial covers the following subjects:
3737
3838
## Install the .NET Core Hosting Bundle
3939

40-
Install the *.NET Core Hosting Bundle* on the IIS server. The bundle installs the .NET Core Runtime, .NET Core Library, and the [ASP.NET Core Module](xref:host-and-deploy/aspnet-core-module). The module allows ASP.NET Core apps to run behind IIS. If the system doesn't have an Internet connection, obtain and install the [Microsoft Visual C++ 2015 Redistributable Update 3](https://www.microsoft.com/download/details.aspx?id=53840) before installing the .NET Core Hosting Bundle.
40+
Install the *.NET Core Hosting Bundle* on the IIS server. The bundle installs the .NET Core Runtime, .NET Core Library, and the [ASP.NET Core Module](xref:host-and-deploy/aspnet-core-module). The module allows ASP.NET Core apps to run behind IIS.
4141

4242
Download the installer using the following link:
4343

0 commit comments

Comments
 (0)