mirror of https://github.com/abpframework/abp.git
1 changed files with 1 additions and 10 deletions
@ -1,22 +1,13 @@ |
|||
using Microsoft.AspNetCore.Components.WebView.Maui; |
|||
using Microsoft.Extensions.FileProviders; |
|||
using Microsoft.Maui; |
|||
using Volo.Abp.Threading; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Components.MauiBlazor.Bundling; |
|||
|
|||
public class AbpBlazorWebView : BlazorWebView |
|||
{ |
|||
public AbpBlazorWebView() |
|||
{ |
|||
BlazorWebViewInitialized += (s, e) => |
|||
{ |
|||
AsyncHelper.RunSync(() => Handler!.GetRequiredService<MauiBlazorCurrentTimezoneService>().InitializeAsync()); |
|||
}; |
|||
} |
|||
|
|||
public override IFileProvider CreateFileProvider(string contentRootDir) |
|||
{ |
|||
return new CompositeFileProvider(Handler!.GetRequiredService<IMauiBlazorContentFileProvider>(), base.CreateFileProvider(contentRootDir)); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue