1 type derived from InstanceKey
System.ServiceModel (1)
System\ServiceModel\Channels\CorrelationKey.cs (1)
18public sealed class CorrelationKey : InstanceKey
14 instantiations of InstanceKey
System.Activities (2)
System\Activities\Runtime\BookmarkScopeManager.cs (2)
486this.keysToAssociate.Add(new InstanceKey(newScope.Id)); 517this.keysToDisassociate.Add(new InstanceKey(scope.Id));
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\StoreUtilities.cs (3)
72new InstanceKey(reader.GetGuid(1)), Guid.Empty); 75returnValue = new InstanceKeyNotReadyException(commandName, new InstanceKey(reader.GetGuid(1))); 84returnValue = new InstanceKeyCompleteException(commandName, new InstanceKey(reader.GetGuid(1)));
System.Runtime.DurableInstancing (4)
System\Runtime\DurableInstancing\InstanceKey.cs (1)
17static InstanceKey invalidKey = new InstanceKey();
System\Runtime\DurableInstancing\InstanceKeyCollisionException.cs (1)
56InstanceKey = guid == Guid.Empty ? null : new InstanceKey(guid);
System\Runtime\DurableInstancing\InstanceKeyCompleteException.cs (1)
53InstanceKey = guid == Guid.Empty ? null : new InstanceKey(guid);
System\Runtime\DurableInstancing\InstanceKeyNotReadyException.cs (1)
53InstanceKey = guid == Guid.Empty ? null : new InstanceKey(guid);
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (2)
1119this.context = new PersistenceContext(this.ppd, this.ppd.store, this.handle, this.view.InstanceId, this.view.InstanceKeys.Values.Select((keyView) => new InstanceKey(keyView.InstanceKey, keyView.InstanceKeyMetadata)), true, true, this.view, null); 1128this.context = new PersistenceContext(this.ppd, this.ppd.store, this.handle, this.view.InstanceId, this.view.InstanceKeys.Values.Select((keyView) => new InstanceKey(keyView.InstanceKey, keyView.InstanceKeyMetadata)), false, true, this.view, this.updatedIdentity);
System\ServiceModel\Activities\InternalSendMessage.cs (2)
765InstanceKey requestReplyCorrelationKey = new InstanceKey(Guid.NewGuid(), 783requestReplyCorrelationKey = new InstanceKey(Guid.NewGuid(),
System\ServiceModel\Activities\SerializableInstanceKey.cs (1)
82return new InstanceKey(this.value, metadata);
206 references to InstanceKey
System.Activities (17)
System\Activities\Hosting\WorkflowInstance.cs (2)
476protected internal abstract void OnDisassociateKeys(ICollection<InstanceKey> keys); 478protected internal abstract IAsyncResult OnBeginAssociateKeys(ICollection<InstanceKey> keys, AsyncCallback callback, object state);
System\Activities\Runtime\ActivityExecutor.cs (3)
1980internal IAsyncResult BeginAssociateKeys(ICollection<InstanceKey> keysToAssociate, AsyncCallback callback, object state) 1990internal void DisassociateKeys(ICollection<InstanceKey> keysToDisassociate) 4455public AssociateKeysAsyncResult(ActivityExecutor executor, ICollection<InstanceKey> keysToAssociate, AsyncCallback callback, object state)
System\Activities\Runtime\BookmarkScopeManager.cs (8)
22List<InstanceKey> keysToAssociate; 23List<InstanceKey> keysToDisassociate; 339public ICollection<InstanceKey> GetKeysToAssociate() 346ICollection<InstanceKey> result = this.keysToAssociate; 351public ICollection<InstanceKey> GetKeysToDisassociate() 358ICollection<InstanceKey> result = this.keysToDisassociate; 484this.keysToAssociate = new List<InstanceKey>(2); 515this.keysToDisassociate = new List<InstanceKey>(2);
System\Activities\Runtime\WorkItem.cs (2)
273ICollection<InstanceKey> keysToDisassociate = executor.BookmarkScopeManager.GetKeysToDisassociate(); 280ICollection<InstanceKey> keysToAssociate = executor.BookmarkScopeManager.GetKeysToAssociate();
System\Activities\WorkflowApplication.cs (2)
2503protected internal override IAsyncResult OnBeginAssociateKeys(ICollection<InstanceKey> keys, AsyncCallback callback, object state) 2513protected internal override void OnDisassociateKeys(ICollection<InstanceKey> keys)
System.Runtime.DurableInstancing (19)
System\Runtime\DurableInstancing\InstanceKey.cs (4)
17static InstanceKey invalidKey = new InstanceKey(); 91public static InstanceKey InvalidKey 95return InstanceKey.invalidKey; 101return this.Value.Equals(((InstanceKey)obj).Value);
System\Runtime\DurableInstancing\InstanceKeyCollisionException.cs (5)
33public InstanceKeyCollisionException(XName commandName, Guid instanceId, InstanceKey instanceKey, Guid conflictingInstanceId) 38public InstanceKeyCollisionException(XName commandName, Guid instanceId, InstanceKey instanceKey, Guid conflictingInstanceId, Exception innerException) 43public InstanceKeyCollisionException(XName commandName, Guid instanceId, InstanceKey instanceKey, Guid conflictingInstanceId, string message, Exception innerException) 61public InstanceKey InstanceKey { get; private set; } 74static string ToMessage(Guid instanceId, InstanceKey instanceKey, Guid conflictingInstanceId)
System\Runtime\DurableInstancing\InstanceKeyCompleteException.cs (5)
32public InstanceKeyCompleteException(XName commandName, InstanceKey instanceKey) 37public InstanceKeyCompleteException(XName commandName, InstanceKey instanceKey, Exception innerException) 42public InstanceKeyCompleteException(XName commandName, Guid instanceId, InstanceKey instanceKey, string message, Exception innerException) 56public InstanceKey InstanceKey { get; private set; } 68static string ToMessage(InstanceKey instanceKey)
System\Runtime\DurableInstancing\InstanceKeyNotReadyException.cs (5)
32public InstanceKeyNotReadyException(XName commandName, InstanceKey instanceKey) 37public InstanceKeyNotReadyException(XName commandName, InstanceKey instanceKey, Exception innerException) 42public InstanceKeyNotReadyException(XName commandName, Guid instanceId, InstanceKey instanceKey, string message, Exception innerException) 56public InstanceKey InstanceKey { get; private set; } 68static string ToMessage(InstanceKey instanceKey)
System.ServiceModel (35)
System\ServiceModel\Channels\CorrelationMessageProperty.cs (35)
17static readonly ReadOnlyCollection<InstanceKey> emptyInstanceKeyList = new ReadOnlyCollection<InstanceKey>(new List<InstanceKey>(0)); 20ReadOnlyCollection<InstanceKey> additionalKeys; 21InstanceKey correlationKey; 22ReadOnlyCollection<InstanceKey> transientCorrelations; 24public CorrelationMessageProperty(InstanceKey correlationKey, IEnumerable<InstanceKey> additionalKeys) 29public CorrelationMessageProperty(InstanceKey correlationKey, IEnumerable<InstanceKey> additionalKeys, IEnumerable<InstanceKey> transientCorrelations) 43ICollection<InstanceKey> additionalKeysCollection = additionalKeys as ICollection<InstanceKey>; 50this.additionalKeys = additionalKeys as ReadOnlyCollection<InstanceKey>; 53IList<InstanceKey> additionalKeysList = additionalKeys as IList<InstanceKey>; 56additionalKeysList = new List<InstanceKey>(additionalKeys); 58this.additionalKeys = new ReadOnlyCollection<InstanceKey>(additionalKeysList); 62ICollection<InstanceKey> transientCorrelationsCollection = transientCorrelations as ICollection<InstanceKey>; 69this.transientCorrelations = transientCorrelations as ReadOnlyCollection<InstanceKey>; 72IList<InstanceKey> transientCorrelationsList = transientCorrelations as IList<InstanceKey>; 75transientCorrelationsList = new List<InstanceKey>(transientCorrelations); 77this.transientCorrelations = new ReadOnlyCollection<InstanceKey>(transientCorrelationsList); 87public InstanceKey CorrelationKey 92public ReadOnlyCollection<InstanceKey> AdditionalKeys 105public ReadOnlyCollection<InstanceKey> TransientCorrelations 149internal InstanceKey SerializedCorrelationKey 165internal List<InstanceKey> SerializedAdditionalKeys 173return new List<InstanceKey>(this.AdditionalKeys); 179this.additionalKeys = new ReadOnlyCollection<InstanceKey>(value); 186internal List<InstanceKey> SerializedTransientCorrelations 194return new List<InstanceKey>(this.TransientCorrelations); 200this.transientCorrelations = new ReadOnlyCollection<InstanceKey>(value);
System.ServiceModel.Activities (135)
System\ServiceModel\Activities\CorrelationExtension.cs (1)
22public InstanceKey GenerateKey(IDictionary<string, string> keyData)
System\ServiceModel\Activities\CorrelationHandle.cs (4)
36InstanceKey instanceKey; 71internal InstanceKey InstanceKey 89internal InstanceKey TransientInstanceKey 266internal void InitializeBookmarkScope(NativeActivityContext context, InstanceKey instanceKey)
System\ServiceModel\Activities\Description\WorkflowOperationBehavior.cs (2)
192InstanceKey instanceKey; 193ICollection<InstanceKey> additionalKeys;
System\ServiceModel\Activities\Dispatcher\BufferedReceiveManager.cs (7)
17Dictionary<InstanceKey, List<BufferedReceiveMessageProperty>> bufferedProperties; 44InstanceKey instanceKey = correlation.CorrelationKey; 163public void Retry(HashSet<InstanceKey> associatedInstances, ReadOnlyCollection<BookmarkInfo> availableBookmarks) 166foreach (InstanceKey instanceKey in associatedInstances) 218public void AbandonBufferedReceives(HashSet<InstanceKey> associatedInstances) 220foreach (InstanceKey instanceKey in associatedInstances) 374this.bufferedProperties = new Dictionary<InstanceKey, List<BufferedReceiveMessageProperty>>();
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (13)
200protected void GetInstanceKeys(OperationContext operationContext, out InstanceKey instanceKey, out ICollection<InstanceKey> additionalKeys) 203InstanceKey localInstanceKey; 204ICollection<InstanceKey> localAdditionalKeys; 206instanceKey = InstanceKey.InvalidKey; 207additionalKeys = new ReadOnlyCollection<InstanceKey>(new InstanceKey[] { }); 270static ReadOnlyCollection<InstanceKey> emptyKeyCollection = new ReadOnlyCollection<InstanceKey>(new InstanceKey[] { }); 278InstanceKey instanceKey = InstanceKey.InvalidKey; 279ICollection<InstanceKey> additionalKeys = emptyKeyCollection;
System\ServiceModel\Activities\Dispatcher\CorrelationKeyCalculator.cs (11)
43public bool CalculateKeys(Message message, out InstanceKey instanceKey, 44out ICollection<InstanceKey> additionalKeys) 56public bool CalculateKeys(MessageBuffer buffer, Message messageToReadHeaders, out InstanceKey instanceKey, 57out ICollection<InstanceKey> additionalKeys) 78public bool CalculateKeys(T target, Message messageToReadHeaders, out InstanceKey instanceKey, 79out ICollection<InstanceKey> additionalKeys) 83instanceKey = InstanceKey.InvalidKey; 135additionalKeys = new List<InstanceKey>(); 140InstanceKey additionalKey = InstanceKey.InvalidKey; 204void TraceCorrelationKeys(InstanceKey instanceKey, Dictionary<string, string> values)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (6)
268internal IAsyncResult BeginGetInstance(InstanceKey instanceKey, ICollection<InstanceKey> additionalKeys, WorkflowGetInstanceContext parameters, TimeSpan timeout, AsyncCallback callback, object state) 995InstanceKey instanceKey; 996ICollection<InstanceKey> additionalKeys; 1007public GetInstanceAsyncResult(DurableInstanceManager instanceManager, InstanceKey instanceKey, ICollection<InstanceKey> additionalKeys, WorkflowGetInstanceContext parameters,
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (23)
31readonly HashSet<InstanceKey> keysToAssociate; 32readonly HashSet<InstanceKey> keysToDisassociate; 61Guid instanceId, InstanceKey key, IEnumerable<InstanceKey> associatedKeys) 70AssociatedKeys = associatedKeys != null ? new HashSet<InstanceKey>(associatedKeys) : 71new HashSet<InstanceKey>(); 77this.keysToAssociate = new HashSet<InstanceKey>(AssociatedKeys); 78this.keysToDisassociate = new HashSet<InstanceKey>(); 87InstanceHandle handle, Guid instanceId, IEnumerable<InstanceKey> associatedKeys, 175internal HashSet<InstanceKey> AssociatedKeys { get; private set; } 184public void DisassociateKeys(ICollection<InstanceKey> expiredKeys) 196foreach (InstanceKey key in expiredKeys) 246ICollection<InstanceKey> associatedKeys, TimeSpan timeout, AsyncCallback callback, object state) 252ICollection<InstanceKey> associatedKeys, TimeSpan timeout, AsyncCallback callback, object state) 257IAsyncResult BeginAssociateKeysHelper(ICollection<InstanceKey> associatedKeys, 406foreach (InstanceKey key in this.keysToDisassociate) 823foreach (InstanceKey key in this.persistenceContext.keysToAssociate) 827foreach (InstanceKey key in this.persistenceContext.keysToDisassociate) 1092foreach (InstanceKey key in thisPtr.persistenceContext.keysToAssociate) 1125readonly ICollection<InstanceKey> keysToAssociate; 1129public AssociateKeysAsyncResult(PersistenceContext persistenceContext, ICollection<InstanceKey> associatedKeys, TimeSpan timeout, 1242foreach (InstanceKey key in thisPtr.persistenceContext.keysToAssociate) 1248foreach (InstanceKey key in thisPtr.persistenceContext.keysToDisassociate)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (32)
39Dictionary<InstanceKey, AsyncWaitHandle> loadsInProgress; 78this.loadsInProgress = new Dictionary<InstanceKey, AsyncWaitHandle>(); 153public IAsyncResult BeginLoad(InstanceKey key, ICollection<InstanceKey> associatedKeys, Transaction transaction, 170public IAsyncResult BeginLoad(Guid instanceId, ICollection<InstanceKey> associatedKeys, Transaction transaction, bool loadAny, WorkflowIdentityKey updatedIdentity, 192public IAsyncResult BeginLoadOrCreate(InstanceKey key, Guid suggestedId, 193ICollection<InstanceKey> associatedKeys, Transaction transaction, TimeSpan timeout, 210public IAsyncResult BeginLoadOrCreate(Guid instanceId, ICollection<InstanceKey> associatedKeys, Transaction transaction, 290public Transaction GetTransactionForInstance(InstanceKey instanceKey) 312internal ReadOnlyCollection<BookmarkInfo> GetBookmarksForInstance(InstanceKey instanceKey) 329internal bool TryAddAssociations(PersistenceContext context, IEnumerable<InstanceKey> keys, HashSet<InstanceKey> keysToAssociate, HashSet<InstanceKey> keysToDisassociate) 351foreach (InstanceKey key in keys) 361foreach (InstanceKey key in keys) 397internal void RemoveAssociations(PersistenceContext context, IEnumerable<InstanceKey> keys) 410foreach (InstanceKey key in keys) 478PersistenceContext LoadFromCache(InstanceKey key, Guid suggestedIdOrId, bool canCreateInstance) 508InstancePersistenceCommand CreateLoadCommandHelper(InstanceKey key, out InstanceHandle handle, bool canCreateInstance, Guid suggestedIdOrId, ICollection<InstanceKey> associatedKeys, bool loadAny) 535InstanceKey lookupKeyToAdd = (canCreateInstance && key.Metadata != null && key.Metadata.Count > 0) ? key : null; 538foreach (InstanceKey keyToAssociate in associatedKeys) 572static void TryAddKeyToInstanceKeysCollection(IDictionary<Guid, IDictionary<XName, InstanceValue>> instanceKeysToAssociate, InstanceKey keyToAdd) 600foreach (InstanceKey key in contextToAbort.AssociatedKeys) 662AsyncWaitHandle LoadInProgressWaitHandle(InstanceKey key) 682void LoadInProgressFinished(InstanceKey key) 720readonly InstanceKey key; 722readonly ICollection<InstanceKey> associatedKeys; 746public LoadOrCreateAsyncResult(PersistenceProviderDirectory ppd, InstanceKey key, Guid suggestedIdOrId, 747bool canCreateInstance, ICollection<InstanceKey> associatedKeys, Transaction transaction, bool loadAny, WorkflowIdentityKey updatedIdentity, 1232foreach (InstanceKey instanceKey in this.context.AssociatedKeys) 1267foreach (InstanceKey loadedKey in this.context.AssociatedKeys)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (5)
1610protected override IAsyncResult OnBeginAssociateKeys(ICollection<InstanceKey> keys, AsyncCallback callback, object state) 1634protected override void OnDisassociateKeys(ICollection<InstanceKey> keys) 2062public IAsyncResult BeginAssociateInfrastructureKeys(ICollection<InstanceKey> associatedKeys, Transaction transaction, TimeSpan timeout, AsyncCallback callback, object state) 2903readonly ICollection<InstanceKey> associatedKeys; 2908public AssociateKeysAsyncResult(WorkflowServiceInstance workflow, ICollection<InstanceKey> associatedKeys, Transaction transaction,
System\ServiceModel\Activities\InternalReceiveMessage.cs (8)
873InstanceKey correlatesWithValue = null; 923InstanceKey contextCorrelationInstanceKey; 959InstanceKey requestReplyCorrelationInstanceKey; 976InstanceKey callbackContextCorrelationInstanceKey; 1001bool TryGetCallbackContextCorrelationInstanceKey(HostSettings hostSettings, MessageProperties messageProperties, out InstanceKey callbackContextCorrelationInstanceKey) 1025bool TryGetContextCorrelationInstanceKey(HostSettings hostSettings, MessageProperties messageProperties, out InstanceKey correlationContextInstanceKey) 1050bool TryGetRequestReplyCorrelationInstanceKey(MessageProperties messageProperties, out InstanceKey instanceKey) 1056foreach (InstanceKey key in correlationMessageProperty.TransientCorrelations)
System\ServiceModel\Activities\InternalSendMessage.cs (11)
765InstanceKey requestReplyCorrelationKey = new InstanceKey(Guid.NewGuid(), 771List<InstanceKey> transientCorrelations = new List<InstanceKey>(); 773correlationMessageProperty = new CorrelationMessageProperty(InstanceKey.InvalidKey, new List<InstanceKey>(0), transientCorrelations); 778InstanceKey requestReplyCorrelationKey; 788List<InstanceKey> transientCorrelations = new List<InstanceKey>(correlationMessageProperty.TransientCorrelations); 895InstanceKey requestReplyInstanceKey; 911bool TryGetRequestReplyCorrelationInstanceKey(CorrelationMessageProperty correlationMessageProperty, out InstanceKey instanceKey) 915foreach (InstanceKey key in correlationMessageProperty.TransientCorrelations)
System\ServiceModel\Activities\MessagingActivityHelper.cs (5)
82InstanceKey instanceKey; 83ICollection<InstanceKey> additionalKeys; 119InstanceKey instanceKey, ICollection<InstanceKey> additionalKeys) 154foreach (InstanceKey key in additionalKeys)
System\ServiceModel\Activities\SendReceiveExtension.cs (4)
14public abstract void Send(MessageContext message, SendSettings settings, InstanceKey correlatesWith, Bookmark sendCompleteBookmark); 18public abstract void OnUninitializeCorrelation(InstanceKey correlationKey); 20public void RegisterReceive(ReceiveSettings settings, InstanceKey correlatesWith, Bookmark receiveBookmark) 25protected abstract void OnRegisterReceive(ReceiveSettings settings, InstanceKey correlatesWith, Bookmark receiveBookmark);
System\ServiceModel\Activities\SerializableInstanceKey.cs (2)
20public SerializableInstanceKey(InstanceKey instanceKey) 70public InstanceKey ToInstanceKey()
System\ServiceModel\Activities\ToReply.cs (1)
260bool TryGetMessageVersion(InstanceKey instanceKey, out MessageVersion version)