Skip to content

Commit 2e05176

Browse files
committed
Fix typos
1 parent 96063bb commit 2e05176

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ElectronNET.API/Runtime/Services/LifetimeServiceBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected void TransitionState(LifetimeState newState)
8383

8484
if (newState < this.state)
8585
{
86-
throw new Exception($"Invalid state transision from {this.state} to {newState}: " + this.GetType().Name);
86+
throw new Exception($"Invalid state transition from {this.state} to {newState}: " + this.GetType().Name);
8787
}
8888

8989
var oldState = this.state;

src/ElectronNET.AspNet/Runtime/Services/AspNetLifetimeAdapter.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
internal class AspNetLifetimeAdapter : LifetimeServiceBase
99
{
10-
private readonly IHostApplicationLifetime lifetimeSercice;
10+
private readonly IHostApplicationLifetime lifetimeService;
1111

12-
public AspNetLifetimeAdapter(IHostApplicationLifetime lifetimeSercice)
12+
public AspNetLifetimeAdapter(IHostApplicationLifetime lifetimeService)
1313
{
14-
this.lifetimeSercice = lifetimeSercice;
14+
this.lifetimeService = lifetimeService;
1515

16-
this.lifetimeSercice.ApplicationStarted.Register(() => this.TransitionState(LifetimeState.Ready));
17-
this.lifetimeSercice.ApplicationStopping.Register(() => this.TransitionState(LifetimeState.Stopping));
18-
this.lifetimeSercice.ApplicationStopped.Register(() => this.TransitionState(LifetimeState.Stopped));
16+
this.lifetimeService.ApplicationStarted.Register(() => this.TransitionState(LifetimeState.Ready));
17+
this.lifetimeService.ApplicationStopping.Register(() => this.TransitionState(LifetimeState.Stopping));
18+
this.lifetimeService.ApplicationStopped.Register(() => this.TransitionState(LifetimeState.Stopped));
1919
}
2020

2121
protected override Task StopCore()
2222
{
23-
this.lifetimeSercice.StopApplication();
23+
this.lifetimeService.StopApplication();
2424
return Task.CompletedTask;
2525
}
2626
}

0 commit comments

Comments
 (0)