/// <summary>Creates a new outgoing response frame with a void return value.</summary> /// <param name="current">The Current object for the corresponding incoming request.</param> /// <returns>A new OutgoingResponseFrame.</returns> public static OutgoingResponseFrame WithVoidReturnValue(Current current) { var data = new List <ArraySegment <byte> >(); var ostr = new OutputStream(current.Protocol.GetEncoding(), data); ostr.WriteByte((byte)ResultType.Success); _ = ostr.WriteEmptyEncapsulation(current.Encoding); return(new OutgoingResponseFrame(current.Protocol, current.Encoding, data, ostr.Tail)); }