И как эти scoped объеты существуют в background сервисах?
"Создается один объект при его запросе в рамках некой области, например http запроса, и в последующем выдается уже созданный в рамках этой области". Часто получал утверждение что неправильно, и непонятно что за область
Scoped
For web applications, a scoped lifetime indicates that services are created once per client request (connection). Register scoped services with AddScoped.
In apps that process requests, scoped services are disposed at the end of the request.
When using Entity Framework Core, the AddDbContext extension method registers DbContext types with a scoped lifetime by default.
Note
Do not resolve a scoped service from a singleton and be careful not to do so indirectly, for example, through a transient service. It may cause the service to have incorrect state when processing subsequent requests. It's fine to:
- Resolve a singleton service from a scoped or transient service.
- Resolve a scoped service from another scoped or transient service.
By default, in the development environment, resolving a service from another service with a longer lifetime throws an exception. For more information, see Scope validation.
The CKEditor 5 WYSIWYG editor by default produces HTML output that you can save into a database. The default output can be also switched to GitHub-flavored Markdown formatted text.
В чем концептуальное отличие такого сервера от обычного компа с windows server?
Это фишка блокчейна?
Помню, раньше для win7 и ниже были программы, которые переключают на нужные библиотеки, а сейчас либо не могу их найти, либо то что нахожу не работает.
function SubmitData (data) {
// Проверка включена ли grecaptcha в настройках
if ($('#grecaptcha').length > 0) {
$.getScript('https://www.google.com/recaptcha/api.js?render=SITEKEY', function() {
grecaptcha.ready(function() {
grecaptcha.execute('SITEKEY', {action: '123'}).then(function(token) {
console.log('111');
}).then(()=> {
$.ajax({
type: "POST",
url: address,
data: $(formId).serialize(),
contentType: "application/x-www-form-urlencoded",
dataType: "text",
success: function (data) {
}
});
});
});
});
}
console.log('222');
}