public virtual void SendRequest(CrewChiefMessageType requestType)
 {
     this.SendRequest(new CrewChiefRequest()
     {
         MessageType = requestType
     });
 }
        protected virtual IRequestHandler GetHandler(CrewChiefMessageType requestType)
        {
            switch (requestType)
            {
                case CrewChiefMessageType.DataSample:
                    return new SocketDataSampleRequestHandler();
                    break;

                default:
                    throw new ArgumentException(String.Format("Invalid Socket RequestType: {0}", requestType.ToString()));
            }
        }
Ejemplo n.º 3
0
        protected virtual IRequestHandler GetHandler(CrewChiefMessageType requestType)
        {
            switch (requestType)
            {
            case CrewChiefMessageType.DataSample:
                return(new SocketDataSampleRequestHandler());

                break;

            default:
                throw new ArgumentException(String.Format("Invalid Socket RequestType: {0}", requestType.ToString()));
            }
        }
        public static IRequestHandler GetHandler(CrewChiefMessageType requestType)
        {
            switch (requestType)
            {
                case CrewChiefMessageType.Authentication :
                    return new ApiAuthRequestHandler();
                    break;

                case CrewChiefMessageType.DataSample:
                    return new ApiDataSampleRequestHandler();
                    break;

                default:
                    throw new ArgumentException(String.Format("Invalid API RequestType: {0}", requestType.ToString()));
            }
        }
        public static IRequestHandler GetHandler(CrewChiefMessageType requestType)
        {
            switch (requestType)
            {
            case CrewChiefMessageType.Authentication:
                return(new ApiAuthRequestHandler());

                break;

            case CrewChiefMessageType.DataSample:
                return(new ApiDataSampleRequestHandler());

                break;

            default:
                throw new ArgumentException(String.Format("Invalid API RequestType: {0}", requestType.ToString()));
            }
        }
 public virtual void SendRequest(CrewChiefMessageType requestType)
 {
     this.SendRequest(new CrewChiefRequest() { MessageType = requestType });
 }