Solved

C# Async call

Posted on 2010-11-18
3
415 Views
Last Modified: 2012-05-10
Can somebody tell me what the following code is doing?
public IAsyncMethod<RetentionProductSet> LoadAllProductsAsyncMethod(
            BulkAccountRequestDTO request,
            RetentionProductSet ops)
        {
            var currMethod = System.Reflection.MethodBase.GetCurrentMethod();
            var logger = Juniper.Utility.Logger.GetInstance(currMethod);
            logger.Debug("Entering....");
            IOfferProductService OfferSvc = (IOfferProductService)ServicesFactory.getService(ServicesFactory.SERVICE.OFFER_PRODUCT);
            bulkAccountRequestVO RulevO = ConvertBulkAccountRequestVO(request);
            IAsyncMethod<retentionResponseVO> am = OfferSvc.GetOfferProductsAsynchMethod(RulevO);
            logger.Debug("Exiting...");
            return new CascadeAsyncMethod<retentionResponseVO, RetentionProductSet>(am)
                        .BeforeCompleted(o => ProcessRetentionResponseVO(o, ops, string.Empty, false, null, null));
        }

Open in new window

0
Comment
Question by:vivekj2004
  • 2
3 Comments
 

Author Comment

by:vivekj2004
ID: 34166748
CascadeAsyncMethod creates an asynchronous method that calls another asynchronous method. That's a custom method
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 34173294
What do you need to know?  What is the context for that code (i.e. application type)?
0
 

Author Closing Comment

by:vivekj2004
ID: 34180427
i found out the solution. thanks for comment
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now