Manually Calling an Asynch Factory Method in SL - How?Manually Calling an Asynch Factory Method in SL - How?
Old forum URL: forums.lhotka.net/forums/t/7887.aspx
Jav posted on Tuesday, October 27, 2009
In C#, how would one go about calling a Factory method such as the following?
public static void GetMyObject(EventHandler(DataPortalResult(MyObject)) callback)
{
var dp = new DataPortal(MyObject);
dp.FetchCompleted += callback;
dp.BeginFetch();
}RockfordLhotka replied on Tuesday, October 27, 2009
MyObject.GetMyObject((o, e) =>
{
// handle results here
});
Copyright (c) Marimer LLC