Esempio n. 1
0
        public async Task <ActionResult> AsyncGetData()
        {
            LogInfo        logInfo;
            Service2Client svcClient = null;

            try
            {
                using (svcClient = new Service2Client())
                {
                    logInfo = svcClient.AsyncGetData(new Contracts.LogInfo());
                }
            }
            finally
            {
                svcClient.SafeCloseExtension();
            }

            return(View("Index", logInfo));
        }