Skip to content

Commit 689eed3

Browse files
committed
Add instructions for custom OWIN startup
1 parent 7fdb3f4 commit 689eed3

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/Startup/README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,24 @@ Unravel provides a fully configurable ASP.NET Core `IWebHost` on top of `System.
2323

2424
## Setup
2525

26-
1. Install `Unravel.Startup`
26+
1. Install `Unravel.Startup` in your Web Application project
27+
1. Search the project for an existing [OWIN Startup Class](https://learn.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/owin-startup-class-detection):
28+
- There may be an `OwinStartup` attribute, e.g.
29+
30+
```csharp
31+
[assembly: OwinStartup(typeof(UnravelExamples.Web.OwinStartup))]
32+
```
33+
34+
- `Web.config` may contain `owin:appStartup`, e.g.
35+
36+
```xml
37+
<appSettings>
38+
<add key="owin:appStartup" value="UnravelExamples.Web.OwinStartup" />
39+
</appSettings>
40+
```
41+
42+
In the instructions that follow, use that class name instead of `Startup` (or rename it to `Startup`).
43+
2744
1. Open `Global.asax.cs`:
2845
- Rename the class to `Startup`
2946
- Make the class `partial`

0 commit comments

Comments
 (0)