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