File: System\ServiceModel\Activities\CorrelationExtension.cs
Project: ndp\cdf\src\NetFx40\System.ServiceModel.Activities\System.ServiceModel.Activities.csproj (System.ServiceModel.Activities)
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//----------------------------------------------------------------
 
namespace System.ServiceModel.Activities
{
    using System;
    using System.Collections.Generic;
    using System.Runtime.DurableInstancing;
    using System.ServiceModel.Channels;
    using System.Xml.Linq;
 
    class CorrelationExtension
    {
        public CorrelationExtension(XName scopeName)
        {
            ScopeName = scopeName;
        }
 
        public XName ScopeName { get; private set; }
 
        public InstanceKey GenerateKey(IDictionary<string, string> keyData)
        {
            return new CorrelationKey(keyData, ScopeName.ToString(), null);
        }
    }
}