Skip to content

Commit ec66e6f

Browse files
authored
Update getting started 1 to show entire main method.
1 parent 6cbffe8 commit ec66e6f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tutorials/nservicebus-step-by-step/1-getting-started/Snippets/Core_9/Lesson1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ static async Task Main(string[] args)
3030
endpointConfiguration.UseSerialization<SystemJsonSerializer>();
3131

3232
var transport = endpointConfiguration.UseTransport(new LearningTransport());
33+
34+
builder.UseNServiceBus(endpointConfiguration);
3335

36+
await builder.Build().RunAsync();
3437
}
3538
#endregion
3639

tutorials/nservicebus-step-by-step/1-getting-started/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Capturing the `transport` settings in a variable as shown will make things easie
9292

9393
### Starting up
9494

95-
At the end of the `Main` method, after the configuration code, add the following lines which will start the endpoint and keep it running until you press the <kbd>Ctrl+C</kbd> to shut it down.
95+
At the end of the `Main` method, after the configuration code, the following lines will start the endpoint and keep it running until you press the <kbd>Ctrl+C</kbd> to shut it down.
9696

9797
snippet: Startup
9898

0 commit comments

Comments
 (0)