Geeks With Blogs

News


Brian Biales because blogging is just the easiest way to remember things

Fellow GeeksWithBlogs blogger Patrice Calve posted a brief note earlier today about a four day class regarding the Composite UI Application Block and the Smart Client Software Factory (CAB/SCSF) taught by David Platt of Rolling Thunder that just finished up today. I have to agree completely with Patrice, having been there myself the past four days, that it was a great way to get grounded in how the SCSF and CAB work, and what "best practices" to follow when utilizing its many features. We were able to look under the covers at what the framework is doing and why. And we spent a great deal of time investigating the many features and "patterns" available to the developer, how to use them effectively, and in some cases how to avoid using them incorrectly. I left today feeling confident that I understand how CAB and the SCSF (and their many features) best fit in with our architecture, design, and implementation.  If you are just learning about CAB and SCSF the Codeplex site is where to go to download it and try it out. This is a good starting point: http://www.codeplex.com/smartclient.

And if you need training for yourself or your staff, you should check out what David Platt has to offer.  He knows this technology very well. Posted on Friday, March 9, 2007 10:47 PM .NET , SCSF - Smart Client Software Factory , C# | Back to top


Comments on this post: Composite UI Application Block and the Smart Client Software Factory (CAB/SCSF) training

# re: Composite UI Application Block and the Smart Client Software Factory (CAB/SCSF) training
Requesting Gravatar...
Hello,
We are using CAB and SCSF for our application. We also use a WCF service to authentication. Could you please advise us on how to link the WCF authentication service to the authentication infrastructure of CAB in our application ?

You help will be highly appreciated.

Kind regards,
Shah
.Net Developer
France
Left by Shah on May 31, 2007 1:06 PM

# re: Composite UI Application Block and the Smart Client Software Factory (CAB/SCSF) training
Requesting Gravatar...
Hello Shah.

I'm not sure I can help with that. But I'll share my experiences... I was confused about the authentication service myself.

What I did in my application, which uses a custom API for authenticating with a server, is this:

In the module that contains my communications service, I added the following code to the ModuleController.cs:

public override void Run()
{
// We need to logon when the root work item starts, and logoff when it terminates
// So we'll hook in these event handlers that are defined below
WorkItem.RootWorkItem.RunStarted += _rootWorkItem_RunStarted;
WorkItem.RootWorkItem.Terminating += _rootWorkItem_Terminating;

The RunStarted event fires after all the modules have been loaded, all of their Run() methods executed, but before the Shell is made visible to the user.

Then I define this event handler:
public void _rootWorkItem_RunStarted(object sender, EventArgs ev)
{
PerformLogon();
}

This displays a logon dialog box and attempts to logon the user. My logon actually does throw an exception if the user fails to logon and chooses to quit the application rather than continue to attempt to logon. I had to catch this exception in ShellApplication.cs (in the Shell project) in RunInDebugMode() and in RunInReleaseMode(), so that if it catches this event it just goes away quietly...

Hope this helps. If anyone else has a better idea... please add another comment
Left by Brian Biales on May 31, 2007 1:42 PM

# re: Composite UI Application Block and the Smart Client Software Factory (CAB/SCSF) training
Requesting Gravatar...
Do you know if Platt has any upcoming classes in the US? His website seems to be out-of-date and the link for his contact information doesn't work. I would love to attend his four day training.

Thank you.
Left by Suzanne Minton on Apr 17, 2008 8:44 PM

Your comment:
 (will show your gravatar)


Copyright © Brian Biales | Powered by: GeeksWithBlogs.net