예제 #1
0
        public void LoadAsync(string url)
        {
            AsyncManager.OutstandingOperations.Increment();
            var transfer = new CSharpAsync.AsyncWebTransfer(HttpContext, url);

            transfer.Completed += (sender, args) =>
                AsyncManager.OutstandingOperations.Decrement();

            transfer.StartAsync();
        }
예제 #2
0
        public void LoadAsync(string url)
        {
            AsyncManager.OutstandingOperations.Increment();
            var transfer = new CSharpAsync.AsyncWebTransfer(HttpContext, url);

            transfer.Completed += (sender, args) =>
                                  AsyncManager.OutstandingOperations.Decrement();

            transfer.StartAsync();
        }