.net-standard-2.1

Blazor WebAssembly Monitor Threading exception

南楼画角 提交于 2021-02-11 17:05:39
问题 I'm currently working on a .NET Standard 2.1 Blazor WebAssembly hosted application. My application structure looks like this: BlazorApp.Client (error occures here) BlazorApp.Server I use Serilog with the Elasticsearch sink in my BlazorApp.Client project. It works fine, but when I enable Selflog on Serilog and debug, I get the following error in my browser console: SelfLog.Enable(msg => Debug.WriteLine(msg)); Elasticsearch.Net.UnexpectedElasticsearchClientException: Cannot wait on monitors on

Blazor WebAssembly Monitor Threading exception

人盡茶涼 提交于 2021-02-11 17:04:35
问题 I'm currently working on a .NET Standard 2.1 Blazor WebAssembly hosted application. My application structure looks like this: BlazorApp.Client (error occures here) BlazorApp.Server I use Serilog with the Elasticsearch sink in my BlazorApp.Client project. It works fine, but when I enable Selflog on Serilog and debug, I get the following error in my browser console: SelfLog.Enable(msg => Debug.WriteLine(msg)); Elasticsearch.Net.UnexpectedElasticsearchClientException: Cannot wait on monitors on

The event can only appear on the left hand side of += or -= dotnetstandard 2.1 [duplicate]

牧云@^-^@ 提交于 2020-06-29 05:45:07
问题 This question already has an answer here : Event Inheritance with C#8 Default Interface Implementation/Traits (1 answer) Closed last month . I'm using dot net standard 2.1 and c# 8, I want to create an event for my class (interface), I follow this tutorial and I wrote an interface: using System; using Crawler.Paging; namespace Crawler { public interface ICrawler { public event EventHandler NextPage; protected virtual void OnNextPage(EventArgs e) { EventHandler handler = NextPage; handler?