Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 461
  • Last Modified:

C# Async call

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
vivekj2004
Asked:
vivekj2004
  • 2
1 Solution
 
vivekj2004Author Commented:
CascadeAsyncMethod creates an asynchronous method that calls another asynchronous method. That's a custom method
0
 
Bob LearnedCommented:
What do you need to know?  What is the context for that code (i.e. application type)?
0
 
vivekj2004Author Commented:
i found out the solution. thanks for comment
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now