Commit 49d5ac4
committed
Simplify HostApplicationLifetime handling in BotApp.cs
Reordered retrieval of HostApplicationLifetime service to occur
after starting hosted services. Removed individual and global
ApplicationStopping event registrations. Called NotifyStarted
on hostApplicationLifetime post hosted services startup. These
changes streamline the startup process and reduce redundant
event handling.1 parent ceda38a commit 49d5ac4
1 file changed
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 125 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 126 | + | |
137 | 127 | | |
138 | 128 | | |
139 | 129 | | |
| |||
0 commit comments