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();
            };
        }
Example #3
0
            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);
            }
Example #4
0
        protected WriterContinuation(IHttpResponse response, DoNext doNext)
        {
            if (response == null)
            {
                throw new ArgumentNullException("response");
            }

            DoNext = doNext;

            Action = () => {
                Write(response);
                response.Flush();
            };
        }
Example #5
0
        protected WriterContinuation(IHttpWriter writer, DoNext doNext)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }

            DoNext = doNext;

            Action = () => {
                Write(writer);
                writer.Flush();
            };
        }
Example #6
0
        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();
            };
        }
Example #7
0
 public StubBehaviorInvocationFilter(DoNext returnValue)
 {
     _returnValue = returnValue;
 }
 public StubBehaviorInvocationFilter(DoNext returnValue)
 {
     _returnValue = returnValue;
 }