ChannelOptions.SingleWriter Property

Definition

true if writers to the channel guarantee that there will only ever be at most one write operation at a time; false if no such constraint is guaranteed.

C#
public bool SingleWriter { get; set; }

Property Value

Remarks

If true, the channel may be able to optimize certain operations based on knowing about the single-writer guarantee. The default is false.

Applies to

Produto Versións
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)