1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
//----------------------------------------------------------------
// 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 };
}
}
}
|