Print Page | Close Window

Devforce 2012 migration

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4604
Printed Date: 06-Sep-2025 at 6:54am


Topic: Devforce 2012 migration
Posted By: monikapathak14
Subject: Devforce 2012 migration
Date Posted: 19-Nov-2013 at 1:09am
How do I convert this to be devforce 2012 compliant:

public static INotifyCompleted RunForSP<T>(this StoredProcQuery query, Action<IEnumerable<T>> onSuccess, Action<Exception> onFail)
        {
                return query.ExecuteAsync(op => //   OnCompletion(op, onSuccess, onFail));
                                          {
                                              if (op.CompletedSuccessfully)
                                              {
                                                  if (null != onSuccess)
                                                      onSuccess(op.Results.Cast<T>());
                                              }
                                              else
                                              {
                                                  if (null != onFail)
                                                  {
                                                      op.MarkErrorAsHandled();
                                                      onFail(op.Error);
                                                  }
                                              }
                                          });
            
        }

INotifyCompleted  not supported in 2012 devforce version.



Replies:
Posted By: smi-mark
Date Posted: 19-Nov-2013 at 6:11am
This document should help you http://drc.ideablade.com/devforce-2012/bin/view/Documentation/Migrating-DevForce-2010


Posted By: monikapathak14
Date Posted: 19-Nov-2013 at 6:43am
Have already gone through this link. Its very limited in its content.

Any other place where we can have some more illustrations for all the things that are not supported in devforce 2012.


Posted By: kimj
Date Posted: 19-Nov-2013 at 10:33am
The "Migrating from DevForce 2010" page Mark linked summarizes everything not supported in DevForce 2012 and how to move forward. 
 
INotifyCompleted - and coroutine support - is available in the DevForce 2012 Compatibility Pack - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/devforce-backward-compatibility - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/devforce-backward-compatibility .   http://drc.ideablade.com/devforce-2012/bin/view/Documentation/cocktail-backward-compatibility. %20 - I would first take a look at the new async/await API.  You'll see it's much easier to use than callbacks and coroutines, but if you have a lot of code to upgrade the compatibility packs can help.  Here's more info on the async api - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/program-asynchronously - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/program-asynchronously .
 
 
 



Print Page | Close Window