Exemplo n.º 1
0
        public static ARequest Read(BinaryReader reader)
        {
            RequestType request_type = reader.ReadEnum <RequestType>();

            switch (request_type)
            {
            case RequestType.RequestConnectAccount:
                return(RequestConnectAccount.ReadStatic(reader));

            case RequestType.RequestConnectProvideIndicator:
                return(RequestConnectProvideIndicator.ReadStatic(reader));

            case RequestType.RequestConnectProvideExpert:
                return(RequestConnectProvideExpert.ReadStatic(reader));

            case RequestType.RequestAccountOnTimer:
                return(RequestAccountOnTimer.ReadStatic(reader));

            case RequestType.RequestAccountOnTick:
                return(RequestAccountOnTick.ReadStatic(reader));

            case RequestType.RequestDisconnect:
                return(RequestDisconnect.ReadStatic(reader));

            default:
                throw new Exception("Unkown request type: " + request_type);
            }
        }
 private void HandleRequestConnectProvideIndicator(ConnectionTradingOnServer client, RequestConnectProvideIndicator request)
 {
     throw new NotImplementedException();
 }