public override Google.ProtocolBuffers.IMessage ToMessage(string session_id) { string request_id = Guid.NewGuid().ToString(); string timestamp = com.quantmodel.common.network.message.ClientMessage.getTimestamp(); return (ClientAdapterRequest.CreateBuilder() .SetRequestId(request_id) .SetSessionId(session_id) .SetTimestamp(timestamp) .SetType(ClientAdapterRequest.Types.RequestType.DEALING) .SetDealingRequest( DealingEngineRequest.CreateBuilder() .SetRequestId(request_id) .SetTimestamp(timestamp) .SetType(DealingEngineRequest.Types.RequestType.CANCEL_RELEASE) .SetOrder(OrderMessage.CreateBuilder() .AddReleaseData(ReleaseData.CreateBuilder() .SetReleaseId(release_id)))) .Build()); }