Solved

C# Async call

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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