protected override void UpdateView(Session oS) { if (this._headers != null) { this._encoding = Utilities.getEntityBodyEncoding(_headers, oS.RequestBody); } else { _encoding = CONFIG.oHeaderEncoding; } if (!Utilities.IsNullOrEmpty(oS.RequestBody)) { if (_headers != null) { string boundary = Utilities.GetCommaTokenValue(_headers["Content-Type"], "boundary"); if (!string.IsNullOrWhiteSpace(boundary)) { //var binData = GetRequestData(bodyString, boundary); var binData = GetBodyData(oS.RequestBody, boundary); var protocData = ProtobufHelper.Decode(oS.oRequest.headers.RequestPath, true, binData); UpdateView(protocData); } } } }
protected override void UpdateView(Session oS) { var msgMap = ProtobufHelper.Decode(Session.oRequest.headers.RequestPath, false, body); UpdateView(msgMap); }