QueryCorrelationInitializer.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / QueryCorrelationInitializer.cs / 1305376 / QueryCorrelationInitializer.cs

                            //---------------------------------------------------------------- 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//---------------------------------------------------------------

namespace System.ServiceModel.Activities 
{
    using System.ComponentModel; 
    using System.Diagnostics.CodeAnalysis; 
    using System.Runtime;
    using System.ServiceModel; 
    using System.Windows.Markup;

    [ContentProperty("MessageQuerySet")]
    public sealed class QueryCorrelationInitializer : CorrelationInitializer 
    {
        MessageQuerySet messageQuerySet; 
 
        public QueryCorrelationInitializer()
            : base() 
        {
        }

        [SuppressMessage(FxCop.Category.Usage, FxCop.Rule.CollectionPropertiesShouldBeReadOnly, 
            Justification = "MessageQuerySet is a stand-alone class. We want to allow users to create their own.")]
        [SuppressMessage(FxCop.Category.Xaml, FxCop.Rule.PropertyExternalTypesMustBeKnown, 
            Justification = "MessageQuerySet is a known XAML-serializable type in this assembly.")] 
        public MessageQuerySet MessageQuerySet
        { 
            get
            {
                if (this.messageQuerySet == null)
                { 
                    this.messageQuerySet = new MessageQuerySet();
                } 
                return this.messageQuerySet; 
            }
            set 
            {
                this.messageQuerySet = value;
            }
        } 

        internal override CorrelationInitializer CloneCore() 
        { 
            return new QueryCorrelationInitializer { MessageQuerySet = this.MessageQuerySet };
        } 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK