Solved

C# Async call

Posted on 2010-11-18
3
428 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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