protected WriterContinuation(IHttpResponse response, DoNext doNext) { if (response == null) throw new ArgumentNullException("response"); DoNext = doNext; Action = () => { Write(response); response.Flush(); }; }
protected WriterContinuation(IHttpResponse response, DoNext doNext) { if (response == null) throw new ArgumentNullException(nameof(response)); DoNext = doNext; Action = async () => { await Write(response).ConfigureAwait(false); response.Flush(); }; }
public void AddBytes(List <byte> bytes) { HasTreeBurned.AddByte(bytes); IsAnimateTriggered.AddByte(bytes); DoNext.AddByte(bytes); Configuration.AddSnapshotBytes(bytes); LocationCommandProcessor.AddSnapshotBytes(bytes); Items.AddSnapshotsBytes(bytes); Flashlight.AddSnapshotBytes(bytes); Animates.AddSnapshotsBytes(bytes); Player.AddSnapshotBytes(bytes); }
protected WriterContinuation(IHttpResponse response, DoNext doNext) { if (response == null) { throw new ArgumentNullException("response"); } DoNext = doNext; Action = () => { Write(response); response.Flush(); }; }
protected WriterContinuation(IHttpWriter writer, DoNext doNext) { if (writer == null) { throw new ArgumentNullException("writer"); } DoNext = doNext; Action = () => { Write(writer); writer.Flush(); }; }
protected WriterContinuation(IHttpResponse response, DoNext doNext) { if (response == null) { throw new ArgumentNullException(nameof(response)); } DoNext = doNext; Action = async() => { await Write(response).ConfigureAwait(false); response.Flush(); }; }
public StubBehaviorInvocationFilter(DoNext returnValue) { _returnValue = returnValue; }