Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit d7ec315

Browse files
committed
SystemService改名为PlatformService
1 parent 6dc84e4 commit d7ec315

File tree

15 files changed

+17
-17
lines changed

15 files changed

+17
-17
lines changed

YourWeather/YourWeather.Client/Extend/ServiceCollectionExtend/AddCustomIOC.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static IServiceCollection AddCustomIOC(this IServiceCollection services)
1212
services.AddScoped<IThemeService, ThemeService>();
1313
services.AddScoped<IWeatherService, WeatherService>();
1414
services.AddScoped<ILocationService, LocationService>();
15-
services.AddScoped<ISystemService, SystemService>();
15+
services.AddScoped<IPlatformService, PlatformService>();
1616
return services;
1717
}
1818
}

YourWeather/YourWeather.Photino/Extend/ServiceCollectionExtend/AddCustomIOC.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static IServiceCollection AddCustomIOC(this IServiceCollection services)
1212
services.AddSingleton<IThemeService, ThemeService>();
1313
services.AddSingleton<IWeatherService, WeatherService>();
1414
services.AddScoped<ILocationService, LocationService>();
15-
services.AddSingleton<ISystemService, SystemService>();
15+
services.AddSingleton<IPlatformService, PlatformService>();
1616
return services;
1717
}
1818
}

YourWeather/YourWeather.Photino/Services/SystemService.cs renamed to YourWeather/YourWeather.Photino/Services/PlatformService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace YourWeather.Photino.Services
44
{
5-
public class SystemService : Rcl.Services.SystemService
5+
public class PlatformService : Rcl.Services.PlatformService
66
{
77
public override Task OpenBrowserUrl(string url)
88
{

YourWeather/YourWeather.Rcl.Desktop/Services/SystemService.cs renamed to YourWeather/YourWeather.Rcl.Desktop/Services/PlatformService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace YourWeather.Rcl.Desktop.Services
44
{
5-
public class SystemService : Rcl.Services.SystemService
5+
public class PlatformService : Rcl.Services.PlatformService
66
{
77
public override Task OpenBrowserUrl(string url)
88
{

YourWeather/YourWeather.Rcl.Web/Services/SystemService.cs renamed to YourWeather/YourWeather.Rcl.Web/Services/PlatformService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace YourWeather.Rcl.Web.Services
44
{
5-
public class SystemService : Rcl.Services.SystemService, IAsyncDisposable
5+
public class PlatformService : Rcl.Services.PlatformService, IAsyncDisposable
66
{
77
protected readonly IJSRuntime JS;
88
protected IJSObjectReference module = default!;
9-
public SystemService(IJSRuntime js)
9+
public PlatformService(IJSRuntime js)
1010
{
1111
JS = js;
1212

YourWeather/YourWeather.Rcl/Components/PageComponentBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class PageComponentBase : ComponentBase
2020
[Inject]
2121
protected ILocationService LocationService { get; set; } = default!;
2222
[Inject]
23-
protected ISystemService SystemService { get; set; } = default!;
23+
protected IPlatformService PlatformService { get; set; } = default!;
2424
[Inject]
2525
protected NavigationManager Navigation { get; set; } = default!;
2626

YourWeather/YourWeather.Rcl/Pages/SettingPage.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
3838
}
3939
}
4040

41-
private string Version => SystemService.GetVersion();
41+
private string Version => PlatformService.GetVersion();
4242
private Dictionary<string, ThemeType> ThemeTypes => ThemeService.ThemeTypes;
4343
private Dictionary<WeatherSourceType, IWeatherSource> WeatherSources => WeatherService.WeatherSources;
4444

@@ -66,7 +66,7 @@ private async Task WeatherSourceChanged(WeatherSourceType value)
6666
private async Task ToCodeSoucre(string url)
6767
{
6868
ShowCodeSource = false;
69-
await SystemService.OpenBrowserUrl(url);
69+
await PlatformService.OpenBrowserUrl(url);
7070
}
7171
}
7272
}

YourWeather/YourWeather.Rcl/Services/SystemService.cs renamed to YourWeather/YourWeather.Rcl/Services/PlatformService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace YourWeather.Rcl.Services
55
{
6-
public abstract class SystemService : ISystemService
6+
public abstract class PlatformService : IPlatformService
77
{
88
public virtual string GetVersion()
99
{

YourWeather/YourWeather.Server/Extend/ServiceCollectionExtend/AddCustomIOC.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static IServiceCollection AddCustomIOC(this IServiceCollection services)
1313
services.AddScoped<IThemeService, ThemeService>();
1414
services.AddScoped<IWeatherService, WeatherService>();
1515
services.AddScoped<ILocationService, LocationService>();
16-
services.AddScoped<ISystemService, SystemService>();
16+
services.AddScoped<IPlatformService, PlatformService>();
1717
return services;
1818
}
1919
}

YourWeather/YourWeather.Shared/IServices/ISystemService.cs renamed to YourWeather/YourWeather.Shared/IServices/IPlatformService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace YourWeather.Shared
22
{
3-
public interface ISystemService
3+
public interface IPlatformService
44
{
55
Task OpenBrowserUrl(string url);
66
string GetVersion();

0 commit comments

Comments
 (0)