Skip to content

Commit 647929f

Browse files
committed
Rename methods with "Aysnc" to "Async"
There are two typos where a method suffix is "Aysnc" instead of "Async": - The private method CanCloseAysnc of NavigationPageAdapter. - The public method InitialiseAysnc of private class WindowConductor.
1 parent 7758a9e commit 647929f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/Caliburn.Micro.Platform/Platforms/Xamarin.Forms/NavigationPageAdapter.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected virtual async Task ActivateViewAsync(BindableObject view)
105105
/// <returns>The asynchrous task representing the transition</returns>
106106
public async Task GoBackAsync(bool animated = true) {
107107

108-
var canClose = await CanCloseAysnc();
108+
var canClose = await CanCloseAsync();
109109

110110
if (!canClose)
111111
return;
@@ -120,7 +120,7 @@ public async Task GoBackAsync(bool animated = true) {
120120
/// <returns>The asynchrous task representing the transition</returns>
121121
public async Task GoBackToRootAsync(bool animated = true)
122122
{
123-
var canClose = await CanCloseAysnc();
123+
var canClose = await CanCloseAsync();
124124

125125
if (!canClose)
126126
return;
@@ -137,7 +137,7 @@ public async Task GoBackToRootAsync(bool animated = true)
137137
/// <returns>The asynchrous task representing the transition</returns>
138138
public async Task NavigateToViewModelAsync(Type viewModelType, object parameter = null, bool animated = true)
139139
{
140-
var canClose = await CanCloseAysnc();
140+
var canClose = await CanCloseAsync();
141141

142142
if (!canClose)
143143
return;
@@ -156,7 +156,7 @@ public async Task NavigateToViewModelAsync(Type viewModelType, object parameter
156156
/// <returns>The asynchrous task representing the transition</returns>
157157
public async Task NavigateToViewModelAsync<T>(object parameter = null, bool animated = true)
158158
{
159-
var canClose = await CanCloseAysnc();
159+
var canClose = await CanCloseAsync();
160160

161161
if (!canClose)
162162
return;
@@ -173,7 +173,7 @@ public async Task NavigateToViewModelAsync<T>(object parameter = null, bool anim
173173
/// <returns>The asynchrous task representing the transition</returns>
174174
public async Task NavigateToViewAsync(Type viewType, object parameter = null, bool animated = true)
175175
{
176-
var canClose = await CanCloseAysnc();
176+
var canClose = await CanCloseAsync();
177177

178178
if (!canClose)
179179
return;
@@ -192,7 +192,7 @@ public async Task NavigateToViewAsync(Type viewType, object parameter = null, bo
192192
/// <returns>The asynchrous task representing the transition</returns>
193193
public async Task NavigateToViewAsync<T>(object parameter = null, bool animated = true)
194194
{
195-
var canClose = await CanCloseAysnc();
195+
var canClose = await CanCloseAsync();
196196

197197
if (!canClose)
198198
return;
@@ -278,7 +278,7 @@ protected virtual void TryInjectParameters(object viewModel, object parameter)
278278
}
279279
}
280280

281-
private async Task<bool> CanCloseAysnc() {
281+
private async Task<bool> CanCloseAsync() {
282282
var view = navigationPage.CurrentPage;
283283

284284
if (view?.BindingContext is IGuardClose guard)

src/Caliburn.Micro.Platform/Platforms/net46-netcore/WindowManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ protected virtual async Task<Window> CreateWindowAsync(object rootModel, bool is
177177

178178
var conductor = new WindowConductor(rootModel, view);
179179

180-
await conductor.InitialiseAysnc();
180+
await conductor.InitialiseAsync();
181181

182182
return view;
183183
}
@@ -332,7 +332,7 @@ public WindowConductor(object model, Window view)
332332
this.view = view;
333333
}
334334

335-
public async Task InitialiseAysnc()
335+
public async Task InitialiseAsync()
336336
{
337337
if (model is IActivate activator)
338338
{

src/Caliburn.Micro.Platform/Platforms/net46/WindowManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ protected virtual async Task<Window> CreateWindowAsync(object rootModel, bool is
177177

178178
var conductor = new WindowConductor(rootModel, view);
179179

180-
await conductor.InitialiseAysnc();
180+
await conductor.InitialiseAsync();
181181

182182
return view;
183183
}
@@ -332,7 +332,7 @@ public WindowConductor(object model, Window view)
332332
this.view = view;
333333
}
334334

335-
public async Task InitialiseAysnc()
335+
public async Task InitialiseAsync()
336336
{
337337
if (model is IActivate activator)
338338
{

0 commit comments

Comments
 (0)