Example #1
0
        void SendGetAllSubscriptionsForSpotEventsRequest(OpenApiMessagesFactory msgFactory, Queue writeQueue)
        {
            var _msg = msgFactory.CreateGetAllSpotSubscriptionsRequest();

            if (isDebugIsOn)
            {
                Console.WriteLine("SendGetAllSubscriptionsForSpotEventsRequest() Message to be sent:\n{0}", OpenApiMessagesPresentation.ToString(_msg));
            }
            writeQueue.Enqueue(_msg.ToByteArray());
        }
        private void SendGetAllSubscriptionsForSpotEventsRequest()
        {
            var _msg = outgoingMsgFactory.CreateGetAllSpotSubscriptionsRequest();

            if (isDebugIsOn)
            {
                Console.WriteLine("SendGetAllSubscriptionsForSpotEventsRequest() Message to be send:\n{0}", OpenApiMessagesPresentation.ToString(_msg));
            }
            writeQueue.Enqueue(Utils.Serialize(_msg));
        }
Example #3
0
        protected void btnSendGetAllSubscriptionsForSpotEventsRequest_Click(object sender, EventArgs e)
        {
            SendAuthorizationRequest();
            var msgFactory = new OpenApiMessagesFactory();
            var msg        = msgFactory.CreateGetAllSpotSubscriptionsRequest();

            Transmit(msg);
            byte[] _message     = Listen(_apiSocket);
            var    protoMessage = msgFactory.GetMessage(_message);

            lblResponse.Text = OpenApiMessagesPresentation.ToString(protoMessage);
        }
Example #4
0
        void SendGetAllSpotSubscriptionsReq()
        {
            var _msg = outgoingMsgFactory.CreateGetAllSpotSubscriptionsRequest(clientMsgId);

#if TRACE_SUBSCRIPTIONS
            if (isDebugIsOn)
            {
                Debug.WriteLine("SendGetAllSpotSubscriptionsReq() Message to be sent:\n{0}", OpenApiMessagesPresentation.ToString(_msg));
            }
#endif

            writeQueueSync.Enqueue(_msg.ToByteArray());
        }