Logo
CAR REVIEW
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
PREGNANCY
 
 
Windows Server

BizTalk 2009 : WCF LOB Adapter SDK (part 2) - UI Logical Grouping

6/26/2011 4:33:16 PM

2. Step 2: UI Logical Grouping

In this step, you will modify the HotelAdapterBindingElement and HotelAdapterUri classes to logically group the binding and connection properties that you created in step 1. You will create three categories and arrange the properties within these categories, as shown in Table 8.

Table 8. Adapter Property Categories
Property NameCategory
EnableConnectionPoolingMisc
ApplicationConnection
EnableAuthenticationConnection
HostConnection
PollingPeriodInbound

When you complete this step and build the project, the binding and connection properties will be grouped and presented in the Add Adapter Service Reference plug-in and Consume Adapter Service add-in, as shown in Figures 8 and 9.

Figure 8. Categorized connection properties

Although categorizing properties is optional, we recommend that you don't ignore this step. The reasoning is simple—categorizing improves user experience, since in many if not most cases adapter consumers will configure adapters using the UI tools.

Figure 9. Categorized binding properties

As you can guess, the implementation is fairly straightforward and doesn't require more than applying the System.ComponentModel.Category attribute to the custom properties. Let's start with the HotelAdapterBindingElement class:

  1. In Visual Studio, open the HotelAdapterBindingElement.cs file.

  2. To assign the Misc category to the EnableConnectionPooling property, place the [System.ComponentModel.Category("")] line of code at the beginning of the EnableConnectionPooling implementation, as shown here:

    [System.Configuration.ConfigurationProperty("enableConnectionPooling",
    DefaultValue = true)]

    public bool EnableConnectionPooling
    {
    get
    {
    return ((bool)(base["EnableConnectionPooling"]));
    }
    set

    {
    base["EnableConnectionPooling"] = value;
    }
    }

  3. Specify the Inbound category for the PollingPeriod property by placing the [System.ComponentModel.Category("Inbound")] line of code at the beginning of the PollingPeriod property, as shown in the following code snippet:

    [System.ComponentModel.Category("Inbound")]
    [System.Configuration.ConfigurationProperty("pollingPeriod",
    DefaultValue = 10)]

    public int PollingPeriod
    {
    get
    {
    return ((string)(base["pollingPeriod"]));
    }
    set
    {
    base["pollingPeriod"] = value;
    }
    }

Follow a similar procedure for the HotelAdapterConnectionUri class:

  1. In Visual Studio, open the HotelAdapterConnectionUri.cs file.

  2. Expand the Custom Generated Properties region, and apply the [System.ComponentMode.Category("Connection")] attribute to each of the properties in the region. When you finish, the Custom Generated Properties region should match the following code snippet:

    #region Custom Generated Properties

    [System.ComponentModel.Category("Connection")]
    public string Application
    {
    get
    {
    return this.application;
    }
    set
    {
    this.application = value;
    }
    }


    [System.ComponentModel.Category("Connection")]
    public bool EnableAuthentication
    {
    get
    {
    return this.enableAuthentication;
    }
    set
    {
    this.enableAuthentication = value;
    }
    }

    [System.ComponentModel.Category("Connection")]
    public string Host
    {
    get
    {
    return this.host;
    }
    set
    {
    this.host = value;
    }
    }

    #endregion Custom Generated Properties


  3. Save and build the project.

In the next step, you will work with the classes and interfaces responsible for establishing and managing connection to the LOB systems.

Other -----------------
- SQL Server 2008 : Configuring the Instance (part 3)
- SQL Server 2008 : Configuring the Instance (part 2) - Specifying the Backup Compression Default & Enabling Login Failure Auditing
- SQL Server 2008 : Configuring the Instance (part 1) - Viewing Configuration Settings & Specifying Maximum and Minimum Server Memory
- Microsoft PowerPoint 2010 : Expanding PowerPoint Functionality - Loading and Unloading Add-ins
- Microsoft PowerPoint 2010 : Expanding PowerPoint Functionality - Viewing and Managing Add-ins
- Microsoft Dynamics CRM 2011 : Sending and Tracking Email Messages in Microsoft Dynamics CRM for Outlook
- Microsoft Dynamics CRM 2011 : Using Microsoft Dynamics CRM for Outlook - Using the Add Contacts Wizard
- Microsoft Dynamics CRM 2011 : Using Microsoft Dynamics CRM for Outlook - Creating and Tracking Contacts
- Windows Server 2008 R2 : Managing Disks and Disk Storage - Understand the Basics (part 2) - Work with Partitions & Use DiskPart
- Windows Server 2008 R2 : Managing Disks and Disk Storage - Understand the Basics (part 1) - Work with Your Storage
- SharePoint 2010 : Securing a SharePoint Farm
- SharePoint 2010 : Introducing SharePoint Security
- SQL Server 2008 : SQL Server Configuration Manager (part 2) - SQL Server Network Configuration
- SQL Server 2008 : SQL Server Configuration Manager (part 2) - SQL Server Network Configuration
- SQL Server 2008 : SQL Server Configuration Manager (part 1) - SQL Server Services
- BizTalk 2009 : WCF LOB Adapter SDK - WCF LOB Adapter Vivisected
- BizTalk 2009 : WCF LOB Adapter SDK - WCF LOB Adapters vs. WCF Services
- BizTalk 2009 : Understanding the WCF LOB Adapter
- SQL Server 2008 High Availability : Database Clustering
- SQL Server 2008 High Availability : Database Mirroring (part 2) - SharePoint and Database Mirroring
 
 
Most view of day
- Windows Server 2003 on HP ProLiant Servers : Server Placement (part 1) - DNS Placement, Site Affinity
- Evaluating Applications for Windows 7 Compatibility : The Application Compatibility Toolkit (part 2) - Installing ACT
- Microsoft Dynamics CRM 2011 : Using Advanced Find (part 4) - Using Advanced Filter Criteria
- SQL Server 2008 : Security - Authentication mode
- Using COM to Develop UMDF Drivers : Basic Infrastructure Implementation
- SharePoint 2013 : Health and Monitoring (part 2) - Correlation IDs, The Logging Database
- Managing Windows Licensing and Activation : Notification Experience and Reduced Functionality Mode
- Installing and Configuring the Basics of Exchange Server 2013 for a Brand-New Environment (part 2)
- Microsoft PowerPoint 2010 : Creating New Slides (part 2) - Creating a Slide from a Layout, Copying Slides
- Windows Phone 8 : Configuring Basic Device Settings - About Your Phone
Top 10
- Windows Phone 8 : Scheduled Tasks - Scheduled Task API Limitations
- Windows Phone 8 : Scheduled Tasks - Updating Tiles Using a Scheduled Task Agent
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 5) - Editing an Existing To-Do Item
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 4) - Creating the To-Do Item Shell Tile, Saving a To-Do Item
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 3) - Debugging Scheduled Tasks
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 2) - TodoService, TodoItemViewModel
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 1) - TodoItem,TodoDataContext
- Windows Phone 8 : Scheduled Tasks - Using Scheduled Tasks
- Windows Phone 8 : Scheduled Tasks - Background Agent Types
- Windows Phone 8 : Windows Phone Toolkit Animated Page Transitions - Reusing the Transition Attached Properties
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro