コード例 #1
0
        protected override async Task OnAfterRenderAsync(bool aFirstRender)
        {
            //await ReduxDevToolsInterop.InitAsync();
            await JsonRequestHandler.InitAsync();

            await ClientLoader.InitAsync();
        }
コード例 #2
0
ファイル: App.razor.cs プロジェクト: tjdaniel/blazor-state
        protected override async Task OnAfterRenderAsync(bool aFirstRender)
        {
#if ReduxDevToolsEnabled
            await ReduxDevToolsInterop.InitAsync();
#endif
            await JsonRequestHandler.InitAsync();
        }
コード例 #3
0
        public string BitbarSource()
        {
            JsonRequestHandler req = new JsonRequestHandler(
                this, APIRoutes.BitbarSource);

            return(req.Handle().ToString());
        }
コード例 #4
0
 public JsonRequestHandlerTests(TestFixture aTestFixture)
 {
     ServiceProvider    = aTestFixture.ServiceProvider;
     JsonRequestHandler = ServiceProvider.GetService <JsonRequestHandler>();
     Store = ServiceProvider.GetService <IStore>();
     JsonSerializerOptions = ServiceProvider.GetService <BlazorStateOptions>().JsonSerializerOptions;
 }
コード例 #5
0
        protected override async Task OnAfterRenderAsync(bool aFirstRender)
        {
#if ReduxDevToolsEnabled
            await ReduxDevToolsInterop.InitAsync().ConfigureAwait(false);
#endif
            await JsonRequestHandler.InitAsync().ConfigureAwait(false);

            await ClientLoader.LoadClient().ConfigureAwait(false);
        }
コード例 #6
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            var logger = ApplicationLogging.CreateLogger <App>();

            logger.LogInformation("Initializing App component...");

            await ReduxDevToolsInterop.InitAsync();

            await JsonRequestHandler.InitAsync();

            logger.LogInformation("Initializing App component...done");
        }
コード例 #7
0
        protected override async Task OnAfterRenderAsync(bool aFirstRender)
        {
#if ReduxDevToolsEnabled
            await ReduxDevToolsInterop.InitAsync();
#endif
            await JsonRequestHandler.InitAsync();

            await ClientLoader.InitAsync();

            var tasks = new Task[]
            {
                Mediator.Send(new FetchWalletAction()),
                Mediator.Send(new FetchSchemasAction()),
                Mediator.Send(new FetchCredentialDefinitionsAction()),
                Mediator.Send(new FetchConnectionsAction()),
                Mediator.Send(new FetchCredentialsAction()),
                Mediator.Send(new FetchProofsAction())
            };

            await Task.WhenAll(tasks);
        }
コード例 #8
0
        protected override async Task OnAfterRenderAsync()
        {
            await ReduxDevToolsInterop.InitAsync();

            await JsonRequestHandler.InitAsync();
        }
コード例 #9
0
 public Handle_Should(ClientHost aWebAssemblyHost) : base(aWebAssemblyHost)
 {
     JsonRequestHandler    = ServiceProvider.GetService <JsonRequestHandler>();
     JsonSerializerOptions = ServiceProvider.GetService <BlazorStateOptions>().JsonSerializerOptions;
 }
コード例 #10
0
        protected override async Task OnAfterRenderAsync(bool aFirstRender)
        {
            await JsonRequestHandler.InitAsync().ConfigureAwait(false);

            await ClientLoader.LoadClient().ConfigureAwait(false);
        }