воскресенье, 10 сентября 2023 г.

Services, Asp, Singletone

https://stackoverflow.com/questions/64308747/how-to-create-a-singleton-service-in-asp-net-core-in-which-iconfiguration-is-bei

The configuration is already pre-registered by the host that is used with ASP.NET Core. So you can just register your service as you would any other singleton service, and have it depend on the configuration by requiring IConfiguration in the constructor:

public class MyService
{
    private readonly IConfiguration _config;

    public MyService(IConfiguration config)
    {
        _config = config;
    }
}

You can then register this service as a singleton directly in your ConfigureService method:

services.AddSingleton<MyService>();

Things that now depend on your service, for example constructors, will automatically get a reference to that service instance. And since it is registered as singleton, it will only be created once by the DI container.

If you want a bit more control over your configuration, then I would suggest you to adapt the options pattern to make sure that you can work with strongly typed configuration and to avoid unrelated configuration value from spilling into services that shouldn’t not have access to them.

Sertificat, trust

dotnet dev-certs https --trust

React, Anti, Pattern

React, Angular, Asp, Typescript, Webpack

 https://learn.microsoft.com/ru-ru/aspnet/core/client-side/spa/react?view=aspnetcore-7.0&tabs=visual-studio

https://learn.microsoft.com/ru-ru/aspnet/core/client-side/spa/angular?view=aspnetcore-7.0&tabs=visual-studio

https://learn.microsoft.com/ru-ru/aspnet/core/tutorials/signalr-typescript-webpack?view=aspnetcore-7.0&tabs=visual-studio


суббота, 9 сентября 2023 г.

SignalR, Proxy

https://github.com/chimurai/http-proxy-middleware

Awesome, Tables, Dashboards, React, Angular


Tables

https://bashooka.com/coding/react-table-components/

⌗ react-super-responsive-table

React Sticky Table - 0.4.26 (samrith-s.github.io)

https://reactjsexample.com/tag/table/

https://reactjsexample.com/a-high-performance-react-grid-component-with-rich-rendering/

https://reactjsexample.com/react-fixed-table-header-position-and-auto-scrollbar/

https://reactjsexample.com/a-component-that-can-be-used-to-present-data-in-table/


Dashboards

https://ru.pinterest.com/pin/1337074886096518/

// angular

https://colorlib.com/wp/angularjs-admin-templates/

https://www.bootstrapdash.com/blog/best-angularjs-themes-and-template 

https://flatlogic.com/blog/top-19-remarkable-javascript-table-libraries-and-plugins/

https://datatables.net/


Image, Blazor

https://learn.microsoft.com/ru-ru/aspnet/core/blazor/images?view=aspnetcore-7.0#additional-resources

React, Project, Asp, Angular

https://learn.microsoft.com/ru-ru/aspnet/core/client-side/spa/react?view=aspnetcore-7.0&tabs=visual-studio

D:\VC\Train\AspNetReact\my-new-app\my-new-app.sln

the same

D:\VC\Train\AspNetReact\React01\React01.csproj


SignalR,Hub, Gihub, Samples, Groups, StockTickR, Hub

https://learn.microsoft.com/ru-ru/aspnet/core/signalr/hubs?view=aspnetcore-7.0

https://github.com/aspnet/SignalR-samples

D:\VC\SignalR-samples

D:\VC\SignalR-samples\StockTickR - work Well

https://learn.microsoft.com/ru-ru/aspnet/core/signalr/introduction?view=aspnetcore-7.0

https://learn.microsoft.com/ru-ru/aspnet/core/signalr/groups?view=aspnetcore-7.0

hub

https://learn.microsoft.com/ru-ru/aspnet/core/signalr/hubs?view=aspnetcore-7.0

HUB

https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/signalr/hubs/samples/

Groups

https://learn.microsoft.com/ru-ru/aspnet/core/signalr/groups?view=aspnetcore-7.0

https://learn.microsoft.com/ru-ru/aspnet/core/signalr/groups?view=aspnetcore-7.0


https://github.com/aspnet/SignalR-samples/tree/main

вторник, 5 сентября 2023 г.

понедельник, 4 сентября 2023 г.

WebSocket, Asp.Net Core

SignalR instead WebSocket
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/websockets?view=aspnetcore-7.0

Stt, Project, StockTicker, signalR

https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-server-broadcast-with-signalr


Html, Reload, MetaRefresh, Refresh

https://www.thoughtco.com/meta-refresh-tag-3469046

https://stackoverflow.com/questions/3898813/refreshing-images-on-a-page-periodically