예제 #1
0
        public override Task OnMessageReceived(ArraySegment <byte> message, System.Net.WebSockets.WebSocketMessageType type)
        {
            //if (response to Read command)
            //{
            //  BytesRead = message;
            //  mutex.ReleaseMutex;
            //}
            //else //new Command
            //{
            Card         c      = new Card();
            RemoteServer server = RemoteServer.Singleton;
            IList <CTSWriteOperation> operations;
            string tkmsg;
            uint   status, result;

            server.RunCommand("id", "", out status, out result, out tkmsg, out operations, c, new ExAPDU(SendRcvMessage));
            //}
            Console.WriteLine(String.Format("Message Received"));

            return(SendText(message, true));
        }