ProjectTracker: What purpose fulfills the ProjectResourceEditCreator class?

ProjectTracker: What purpose fulfills the ProjectResourceEditCreator class?

Old forum URL:

alex.enjoy posted on Friday, April 20, 2012


I am investigating a little bit within the project tracker sample application.
Can someone explain to me for what the separate class ProjectResourceEditCreator is for?

Sure, I see it creates ProjectResourceEdit instances and fetches them from the database.
But why is this separate implemented and not by factory methods within ProjectResourceEdit?

Thanks for clarification,

btw: is there any overview documentation about the PT sample?

JonnyBee replied on Friday, April 20, 2012

It is described in the Using CSLA 4 ASP.NET MVC book (and with figures too):

"The ProjectResourceEditCreator exists to support asynchronous smart client applications
and stateless web server applications. This type isn’t used by synchronous smart client

alex.enjoy replied on Friday, April 20, 2012

Good to know, thank you!
I never looked inside the UI books so far.... Embarrassed

MarkSutton replied on Friday, July 20, 2012

I'd actually like to raise this issue again.

I'm looking at the current (4.3.12) version of the ProjectTracker project from a WPF-over-3-tiers perspective.  I also have the eBooks for CSLA 4.

The UsingCsla4-05-WPF-SL.pdf book (Rev 0.4 (draft)) states the following:

The ProjectResourceEditCreator type is not used by the smart client applications covered in this ebook. For a full discussion of this type, please refer to the Using CSLA 4: ASP.NET MVC ebook.

However, when I run the WPF client in debug and add a resource to a project the following method is being called:

class ProjectResourceEditCreator

public static void GetProjectResourceEditCreator(int resourceId, EventHandler<DataPortalResult<ProjectResourceEditCreator>> callback)


      DataPortal.BeginFetch<ProjectResourceEditCreator>(resourceId, callback);


I'm about to develop a WPF application making asynchronous calls over WCF to a middle tier, and I'm puzzled as to what is the advised pattern.



Copyright (c) Marimer LLC