Skip to content

Commit

Permalink
Add BuildHost to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
owns authored Jan 10, 2025
1 parent 44bd022 commit 6ad33c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,19 @@ public class Startup
}
```

* `BuildHost` method

> **NOTE**: If this method signature is not found, the host is built by simply calling `hostBuilder.Build();`.
```C#
public class Startup
{
public IHost BuildHost([IHostBuilder hostBuilder]) { return hostBuilder.Build(); }
}
```

* `Configure` method

Thid method is called after the host is built.
Anything defined in `ConfigureServices`, can be specified in the `Configure` method signature. These services are injected if they're available.

## How to find `Startup`?
Expand Down

0 comments on commit 6ad33c6

Please sign in to comment.