Esempio n. 1
0
            public void run()
            {
                if (log.isDebugEnabled())
                {
                    log.debug("run(");
                }

                MyAsyncResult asyncResult = new MyAsyncResult(pthis);

                BAsyncResultIF <BMessage> nextAsyncMethod = new MyAsyncMethod(pthis, asyncResult);

                // Sende den longPoll-Request
                // Im Body befindet sich die Antwort auf die vorige vom Server gestellte Anfrage.
                // Als Ergebnis des longPoll kommt eine neue Serveranfrage (Methode).

                pthis.transport.getWire().sendR(methodResult, nextAsyncMethod);

                if (log.isDebugEnabled())
                {
                    log.debug(")run");
                }
            }
Esempio n. 2
0
        public async Task <ViewResult> Index()
        {
            long?lenght = await MyAsyncMethod.GetPageLength();

            return(View(new string[] { $"Lenght: {lenght}" }));
        }