Skip to content

Commit

Permalink
Merge pull request #139 from owns/main
Browse files Browse the repository at this point in the history
Update docs for Startup method, BuildHost
  • Loading branch information
pengweiqhca authored Jan 11, 2025
2 parents 44bd022 + 4524264 commit 4d5954e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ 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

Anything defined in `ConfigureServices`, can be specified in the `Configure` method signature. These services are injected if they're available.
Expand Down

0 comments on commit 4d5954e

Please sign in to comment.