McProtoNet.Scenarios
Types: 8.
| Types | Description |
|---|---|
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 IExpectation | Untyped view of an expectation, enough for PacketWait.AnyAsync to race several of them without taking a packet from the ones that lose. |
enum OverflowPolicy | What an Expectation<T> does when its queue is full and one more packet arrives. |
sealed class PacketOverflowException | An Expectation<T> opened with OverflowPolicy.Fault received more packets than its capacity before the scenario read them. |
sealed class PacketStreamClosedException | The packet stream behind a PacketWaiter ended (disconnect, PacketWaiter.Complete, or the waiter itself was disposed). |
static class PacketWait | Composition helpers around PacketWaiter. |
sealed class PacketWaiter | Turns the dispatched packet stream into awaitable expectations. |
readonly struct TeeVisitor<TA, TB> | Two visitors behind one IPacketVisitor; see PacketWait.Tee<TA, TB>. |