New Posts New Posts RSS Feed: Devforce 2012 migration
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Devforce 2012 migration

 Post Reply Post Reply
Author
monikapathak14 View Drop Down
Newbie
Newbie


Joined: 26-Jun-2013
Location: Gurgaon
Posts: 10
Post Options Post Options   Quote monikapathak14 Quote  Post ReplyReply Direct Link To This Post Topic: Devforce 2012 migration
    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.
Back to Top
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Posted: 19-Nov-2013 at 6:11am
This document should help you http://drc.ideablade.com/devforce-2012/bin/view/Documentation/Migrating-DevForce-2010
Back to Top
monikapathak14 View Drop Down
Newbie
Newbie


Joined: 26-Jun-2013
Location: Gurgaon
Posts: 10
Post Options Post Options   Quote monikapathak14 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post 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.   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.
 
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down