The Artima Developer Community
Sponsored Link

.NET Buzz Forum
CAB, June to October: Goodbye, ApplicationHost!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brad Wilson

Posts: 462
Nickname: dotnetguy
Registered: Jul, 2003

Brad Wilson is CTO of OneVoyce, Inc.
CAB, June to October: Goodbye, ApplicationHost! Posted: Oct 9, 2005 11:29 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Brad Wilson.
Original Post: CAB, June to October: Goodbye, ApplicationHost!
Feed Title: The .NET Guy
Feed URL: /error.aspx?aspxerrorpath=/dotnetguy/Rss.aspx
Feed Description: A personal blog about technology in general, .NET in specific, and when all else fails, the real world.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Brad Wilson
Latest Posts From The .NET Guy

Advertisement

This post discusses changes to the Composite UI Application Block as of the October 2005 CTP release.

Two pieces of feedback we got pretty consistently were:

  • What is ApplicationHost? Why is it different from a WorkItem?
  • Why can't I control the root WorkItemType in the application host?

We took both of these items to heart, and re-worked the root of the application hierarchy in CAB to make writing CAB applications easier and quicker.

We eliminated the ApplicationHost class and all the associated initializers. We replaced this with CabApplication<> and family, from which your main application file can now derive. Stage 1 of the Walkthrough (see the PDF in the Help directory for more information) has you creating the core of a CAB applicaiton: the Application and the Shell. You can see the application class as:

public class ShellApplication : FormShellApplication<ShellWorkItem, ShellForm>
{
   [STAThread]
   static void Main()
   {
     new ShellApplication().Run();
   }
}

You create an application class, which implements the Main entry point, and derives from one of our application classes. As generics, you pass the type of your root work item and the type of your shell, and the application class will automatically create both for you. This has greatly simplified and clarified the startup of an application.

You can see in this example we used FormShellApplication as our base class. In another post, I'll talk about our application classes and what they're for.

Read: CAB, June to October: Goodbye, ApplicationHost!

Topic: Deleted Items Document Library Custom List Template Previous Topic   Next Topic Topic: LINQ Preview

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use