Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 756 Bytes

File metadata and controls

38 lines (26 loc) · 756 Bytes

Create Event Display - C#

Create Event Display

Create an empty ASP.NET Core app:

dotnet new web -o event-display

Inside the event-display/csharp folder, update Startup.cs to have a logger to print the contents of the event.

Change the log level in appsettings.json to Information:

{
  "Logging": {
    "LogLevel": {
      "Default": "Information"
    }
  },
  "AllowedHosts": "*"
}

Before building the Docker image, make sure the app has no compilation errors:

dotnet build

Create a Dockerfile

Create a Dockerfile for the image.

What's Next?

Back to Hello World Eventing