Перейти к основному содержимому

McProtoNet.Scenarios

Types: 8.

TypesDescription
sealed class Expectation<T>One open wait for packets of type T: a bounded queue that fills from the receive loop for as long as the handle lives.
interface IExpectationUntyped view of an expectation, enough for PacketWait.AnyAsync to race several of them without taking a packet from the ones that lose.
enum OverflowPolicyWhat an Expectation<T> does when its queue is full and one more packet arrives.
sealed class PacketOverflowExceptionAn Expectation<T> opened with OverflowPolicy.Fault received more packets than its capacity before the scenario read them.
sealed class PacketStreamClosedExceptionThe packet stream behind a PacketWaiter ended (disconnect, PacketWaiter.Complete, or the waiter itself was disposed).
static class PacketWaitComposition helpers around PacketWaiter.
sealed class PacketWaiterTurns the dispatched packet stream into awaitable expectations.
readonly struct TeeVisitor<TA, TB>Two visitors behind one IPacketVisitor; see PacketWait.Tee<TA, TB>.