Skip to content

Commit e7be125

Browse files
committed
Refactor MauiApp creation and organize usings
Replaced expression-bodied MauiApp creation with block-bodied methods for platform AppDelegate/App classes to improve readability and consistency. Also reordered using directives in RouteCacheService for better organization.
1 parent 9e9ab08 commit e7be125

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

samples/Blazouter.Hybrid.Sample/Platforms/MacCatalyst/AppDelegate.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Blazouter.Hybrid.Sample
55
[Register("AppDelegate")]
66
public class AppDelegate : MauiUIApplicationDelegate
77
{
8-
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
8+
protected override MauiApp CreateMauiApp()
9+
{
10+
return MauiProgram.CreateMauiApp();
11+
}
912
}
1013
}

samples/Blazouter.Hybrid.Sample/Platforms/Windows/App.xaml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public App()
1919
this.InitializeComponent();
2020
}
2121

22-
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
22+
protected override MauiApp CreateMauiApp()
23+
{
24+
return MauiProgram.CreateMauiApp();
25+
}
2326
}
2427

2528
}

samples/Blazouter.Hybrid.Sample/Platforms/iOS/AppDelegate.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Blazouter.Hybrid.Sample
55
[Register("AppDelegate")]
66
public class AppDelegate : MauiUIApplicationDelegate
77
{
8-
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
8+
protected override MauiApp CreateMauiApp()
9+
{
10+
return MauiProgram.CreateMauiApp();
11+
}
912
}
1013
}

src/Blazouter/Services/RouteCacheService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using System.Collections.Concurrent;
21
using Blazouter.Interfaces;
32
using Blazouter.Models;
3+
using System.Collections.Concurrent;
44

55
namespace Blazouter.Services
66
{

0 commit comments

Comments
 (0)