-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
InstancePersistenceContext.xml
978 lines (921 loc) · 73.1 KB
/
InstancePersistenceContext.xml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
<Type Name="InstancePersistenceContext" FullName="System.Runtime.DurableInstancing.InstancePersistenceContext">
<TypeSignature Language="C#" Value="public sealed class InstancePersistenceContext" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit InstancePersistenceContext extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Runtime.DurableInstancing.InstancePersistenceContext" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class InstancePersistenceContext" />
<TypeSignature Language="F#" Value="type InstancePersistenceContext = class" />
<TypeSignature Language="C++ CLI" Value="public ref class InstancePersistenceContext sealed" />
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents execution state information while a persistence command is being executed.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An instance of this class is passed to the TryCommand method of persistence provider implementations. Persistence providers use this class to inspect the in-memory view of the instance as well as indicate the results of operations on the external store which may affect the view or other in-memory context.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="AssociatedInstanceKey">
<MemberSignature Language="C#" Value="public void AssociatedInstanceKey (Guid key);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AssociatedInstanceKey(valuetype System.Guid key) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.AssociatedInstanceKey(System.Guid)" />
<MemberSignature Language="VB.NET" Value="Public Sub AssociatedInstanceKey (key As Guid)" />
<MemberSignature Language="F#" Value="member this.AssociatedInstanceKey : Guid -> unit" Usage="instancePersistenceContext.AssociatedInstanceKey key" />
<MemberSignature Language="C++ CLI" Value="public:
 void AssociatedInstanceKey(Guid key);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Guid" />
</Parameters>
<Docs>
<param name="key">The instance key identifier for the key that has been associated. Must not be Guid.Empty.</param>
<summary>Indicates that the persistence provider has successfully associated a key to the current instance in the instance store. The identifier of the key is specified as a parameter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The instance key must be unassociated. The current instance handle must be bound to an instance as well as a lock on that instance.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BeginBindReclaimedLock">
<MemberSignature Language="C#" Value="public IAsyncResult BeginBindReclaimedLock (long instanceVersion, TimeSpan timeout, AsyncCallback callback, object state);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.IAsyncResult BeginBindReclaimedLock(int64 instanceVersion, valuetype System.TimeSpan timeout, class System.AsyncCallback callback, object state) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BeginBindReclaimedLock(System.Int64,System.TimeSpan,System.AsyncCallback,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function BeginBindReclaimedLock (instanceVersion As Long, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult" />
<MemberSignature Language="F#" Value="member this.BeginBindReclaimedLock : int64 * TimeSpan * AsyncCallback * obj -> IAsyncResult" Usage="instancePersistenceContext.BeginBindReclaimedLock (instanceVersion, timeout, callback, state)" />
<MemberSignature Language="C++ CLI" Value="public:
 IAsyncResult ^ BeginBindReclaimedLock(long instanceVersion, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IAsyncResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="instanceVersion" Type="System.Int64" />
<Parameter Name="timeout" Type="System.TimeSpan" />
<Parameter Name="callback" Type="System.AsyncCallback" />
<Parameter Name="state" Type="System.Object" />
</Parameters>
<Docs>
<param name="instanceVersion">The version of the lock held on the instance, or zero if the persistence provider does not implement lock versions.</param>
<param name="timeout">The timeout period for the asynchronous operation.</param>
<param name="callback">The method to be called when the operation is completed.</param>
<param name="state">The state information associated with the asynchronous operation.</param>
<summary>Begin an asynchronous operation to bind an existing lock on an instance to the current instance handle. The version of the existing lock is passed as a parameter.</summary>
<returns>The status of an asynchronous operation.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When attempting to acquire a lock, the persistence provider may decide that the current instance is already locked in the current store. If the lock token matches the current handle's lock token, then the persistence provider can attempt to reclaim the lock by inspecting its version and passing it to BeginBindReclaimedLock. The persistence provider must not make changes to the instance until the lock is successfully reclaimed. If no other handle is bound to the lock, then the BeginBindReclaimedLock operation succeeds and the current handle becomes bound to the lock. Otherwise, BeginBindReclaimedLock or EndBindReclaimedLock throws InstanceHandleConflictException. If commands are in progress on other handles, the operation may not complete while waiting for the outcome of those commands to decide whether the lock can be reclaimed.
The current instance handle must be bound to an instance and a lock owner. The instance must not be completed. The lock token associated with the lock owner is used to identify the owner of the lock.
Once a lock is bound to a handle, it remains bound for the lifetime of the handle. Neither the lock token nor the instance version can be changed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BeginExecute">
<MemberSignature Language="C#" Value="public IAsyncResult BeginExecute (System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout, AsyncCallback callback, object state);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.IAsyncResult BeginExecute(class System.Runtime.DurableInstancing.InstancePersistenceCommand command, valuetype System.TimeSpan timeout, class System.AsyncCallback callback, object state) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BeginExecute(System.Runtime.DurableInstancing.InstancePersistenceCommand,System.TimeSpan,System.AsyncCallback,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Function BeginExecute (command As InstancePersistenceCommand, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult" />
<MemberSignature Language="F#" Value="member this.BeginExecute : System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan * AsyncCallback * obj -> IAsyncResult" Usage="instancePersistenceContext.BeginExecute (command, timeout, callback, state)" />
<MemberSignature Language="C++ CLI" Value="public:
 IAsyncResult ^ BeginExecute(System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IAsyncResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.Runtime.DurableInstancing.InstancePersistenceCommand" />
<Parameter Name="timeout" Type="System.TimeSpan" />
<Parameter Name="callback" Type="System.AsyncCallback" />
<Parameter Name="state" Type="System.Object" />
</Parameters>
<Docs>
<param name="command">The persistence command to be executed.</param>
<param name="timeout">The time-out value for the operation.</param>
<param name="callback">The delegate that receives the notification of the asynchronous receive that a request operation completes.</param>
<param name="state">The state information.</param>
<summary>Begins executing a persistence command asynchronously.</summary>
<returns>The status of an asynchronous operation.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A persistence provider can use this method to execute sub-commands as part of a command. The sub-command will be executed using BeginTryCommand, similar to commands passed to InstanceStore.BeginExecute. Commands can be nested, but a command must not execute more than one sub-command at a time.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BindAcquiredLock">
<MemberSignature Language="C#" Value="public void BindAcquiredLock (long instanceVersion);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void BindAcquiredLock(int64 instanceVersion) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BindAcquiredLock(System.Int64)" />
<MemberSignature Language="VB.NET" Value="Public Sub BindAcquiredLock (instanceVersion As Long)" />
<MemberSignature Language="F#" Value="member this.BindAcquiredLock : int64 -> unit" Usage="instancePersistenceContext.BindAcquiredLock instanceVersion" />
<MemberSignature Language="C++ CLI" Value="public:
 void BindAcquiredLock(long instanceVersion);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="instanceVersion" Type="System.Int64" />
</Parameters>
<Docs>
<param name="instanceVersion">Version of the lock acquired on the instance, or zero if the persistence provider does not implement lock versions.</param>
<summary>Binds a newly acquired lock on an instance to the current instance handle. The version of the acquired lock is passed as a parameter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If a persistence provider implements lock versioning, then each time a lock is acquired on the instance, the version must be incremented by one in the external store. The first time the instance is locked, the version should be 1. Each lock acquisition invalidates the previous lock. The current instance handle must be bound to an instance and a lock owner. The instance must not be completed. The lock token associated with the lock owner is used to identify the owner of the lock
Once a lock is bound to a handle, it remains bound for the lifetime of the handle. Neither the lock token nor the instance version can be changed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BindEvent">
<MemberSignature Language="C#" Value="public void BindEvent (System.Runtime.DurableInstancing.InstancePersistenceEvent persistenceEvent);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void BindEvent(class System.Runtime.DurableInstancing.InstancePersistenceEvent persistenceEvent) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BindEvent(System.Runtime.DurableInstancing.InstancePersistenceEvent)" />
<MemberSignature Language="VB.NET" Value="Public Sub BindEvent (persistenceEvent As InstancePersistenceEvent)" />
<MemberSignature Language="F#" Value="member this.BindEvent : System.Runtime.DurableInstancing.InstancePersistenceEvent -> unit" Usage="instancePersistenceContext.BindEvent persistenceEvent" />
<MemberSignature Language="C++ CLI" Value="public:
 void BindEvent(System::Runtime::DurableInstancing::InstancePersistenceEvent ^ persistenceEvent);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="persistenceEvent" Type="System.Runtime.DurableInstancing.InstancePersistenceEvent" />
</Parameters>
<Docs>
<param name="persistenceEvent">An <see cref="T:System.Runtime.DurableInstancing.InstancePersistenceEvent" /> object containing information about the event.</param>
<summary>Binds an <see cref="T:System.Runtime.DurableInstancing.InstancePersistenceEvent" /> to an instance handle.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BindInstance">
<MemberSignature Language="C#" Value="public void BindInstance (Guid instanceId);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void BindInstance(valuetype System.Guid instanceId) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BindInstance(System.Guid)" />
<MemberSignature Language="VB.NET" Value="Public Sub BindInstance (instanceId As Guid)" />
<MemberSignature Language="F#" Value="member this.BindInstance : Guid -> unit" Usage="instancePersistenceContext.BindInstance instanceId" />
<MemberSignature Language="C++ CLI" Value="public:
 void BindInstance(Guid instanceId);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="instanceId" Type="System.Guid" />
</Parameters>
<Docs>
<param name="instanceId">An instance identifier. Must not be Guid.Empty.</param>
<summary>Binds an instance whose identifier is specified as a parameter to the current instance handle.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Once an instance is bound to a handle, it remains bound for the lifetime of the handle. No other instance can ever be bound to the handle.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BindInstanceOwner">
<MemberSignature Language="C#" Value="public void BindInstanceOwner (Guid instanceOwnerId, Guid lockToken);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void BindInstanceOwner(valuetype System.Guid instanceOwnerId, valuetype System.Guid lockToken) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BindInstanceOwner(System.Guid,System.Guid)" />
<MemberSignature Language="VB.NET" Value="Public Sub BindInstanceOwner (instanceOwnerId As Guid, lockToken As Guid)" />
<MemberSignature Language="F#" Value="member this.BindInstanceOwner : Guid * Guid -> unit" Usage="instancePersistenceContext.BindInstanceOwner (instanceOwnerId, lockToken)" />
<MemberSignature Language="C++ CLI" Value="public:
 void BindInstanceOwner(Guid instanceOwnerId, Guid lockToken);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="instanceOwnerId" Type="System.Guid" />
<Parameter Name="lockToken" Type="System.Guid" />
</Parameters>
<Docs>
<param name="instanceOwnerId">The identifier for the instance owner.</param>
<param name="lockToken">The lock token of the instance owner. A persistence provider may choose to use the same value for the instance owner identifier and the owner's lock token.</param>
<summary>Binds an instance owner to the current instance handle.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Once an instance owner is bound to a handle, it remains bound for the lifetime of the handle. No other instance owner can ever be bound to the handle.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BindReclaimedLock">
<MemberSignature Language="C#" Value="public void BindReclaimedLock (long instanceVersion, TimeSpan timeout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void BindReclaimedLock(int64 instanceVersion, valuetype System.TimeSpan timeout) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BindReclaimedLock(System.Int64,System.TimeSpan)" />
<MemberSignature Language="VB.NET" Value="Public Sub BindReclaimedLock (instanceVersion As Long, timeout As TimeSpan)" />
<MemberSignature Language="F#" Value="member this.BindReclaimedLock : int64 * TimeSpan -> unit" Usage="instancePersistenceContext.BindReclaimedLock (instanceVersion, timeout)" />
<MemberSignature Language="C++ CLI" Value="public:
 void BindReclaimedLock(long instanceVersion, TimeSpan timeout);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="instanceVersion" Type="System.Int64" />
<Parameter Name="timeout" Type="System.TimeSpan" />
</Parameters>
<Docs>
<param name="instanceVersion">Version of the lock held on the instance, or zero if the persistence provider does not implement lock versions.</param>
<param name="timeout">The time-out value for the operation.</param>
<summary>Binds an existing lock on an instance to the current instance handle. The version of the existing lock is passed as a parameter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When attempting to acquire a lock, the persistence provider may decide that the current instance is already locked in the current store. If the lock token matches the current handle's lock token, then the persistence provider can attempt to reclaim the lock by inspecting its version and passing it to BindReclaimedLock. The persistence provider must not make changes to the instance until the lock is successfully reclaimed. If no other handle is bound to the lock, then BindReclaimedLock succeeds and the current handle becomes bound to the lock. Otherwise, BindReclaimedLock throws InstanceHandleConflictException. If commands are in progress on other handles, BindReclaimedLock may block waiting for the outcome of those commands before deciding whether the lock can be reclaimed.
The current instance handle must be bound to an instance and a lock owner. The instance must not be completed. The lock token associated with the lock owner is used to identify the owner of the lock.
Once a lock is bound to a handle, it remains bound for the lifetime of the handle. Neither the lock token nor the instance version can be changed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CompletedInstance">
<MemberSignature Language="C#" Value="public void CompletedInstance ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CompletedInstance() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.CompletedInstance" />
<MemberSignature Language="VB.NET" Value="Public Sub CompletedInstance ()" />
<MemberSignature Language="F#" Value="member this.CompletedInstance : unit -> unit" Usage="instancePersistenceContext.CompletedInstance " />
<MemberSignature Language="C++ CLI" Value="public:
 void CompletedInstance();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Indicates that the persistence provider has successfully marked the current instance as complete in the instance store.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance as well as a lock on that instance. The instance must be initialized and not be already completed. (An instance is initialized if a set of instance data has ever been persisted to it.) All of the keys associated to the instance must be completed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CompletedInstanceKey">
<MemberSignature Language="C#" Value="public void CompletedInstanceKey (Guid key);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CompletedInstanceKey(valuetype System.Guid key) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.CompletedInstanceKey(System.Guid)" />
<MemberSignature Language="VB.NET" Value="Public Sub CompletedInstanceKey (key As Guid)" />
<MemberSignature Language="F#" Value="member this.CompletedInstanceKey : Guid -> unit" Usage="instancePersistenceContext.CompletedInstanceKey key" />
<MemberSignature Language="C++ CLI" Value="public:
 void CompletedInstanceKey(Guid key);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Guid" />
</Parameters>
<Docs>
<param name="key">The instance key identifier for the key that has been completed. Must not be Guid.Empty.</param>
<summary>Indicates that the persistence provider has successfully marked a key as complete in the external store. The identifier of the key is specified as a parameter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance as well as a lock on that instance. The instance key must be associated to the current instance and not be already completed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateBindReclaimedLockException">
<MemberSignature Language="C#" Value="public Exception CreateBindReclaimedLockException (long instanceVersion);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Exception CreateBindReclaimedLockException(int64 instanceVersion) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.CreateBindReclaimedLockException(System.Int64)" />
<MemberSignature Language="VB.NET" Value="Public Function CreateBindReclaimedLockException (instanceVersion As Long) As Exception" />
<MemberSignature Language="F#" Value="member this.CreateBindReclaimedLockException : int64 -> Exception" Usage="instancePersistenceContext.CreateBindReclaimedLockException instanceVersion" />
<MemberSignature Language="C++ CLI" Value="public:
 Exception ^ CreateBindReclaimedLockException(long instanceVersion);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Exception</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="instanceVersion" Type="System.Int64" />
</Parameters>
<Docs>
<param name="instanceVersion">The version of the lock held on the instance, or zero if the persistence provider does not implement lock versions.</param>
<summary>Creates an instance of an exception which can be thrown from TryCommand to trigger BindReclaimedLock behavior.</summary>
<returns>An exception.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Sample code:
```
protected override bool TryCommand(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout)
{
throw context.CreateBindReclaimedLockException(5);
}
is equivalent to
protected override bool TryCommand(InstancePersistenceContext context, InstancePersistenceCommand command, TimeSpan timeout)
{
context.BindReclaimedLock(5, timeout);
throw new OperationCanceledException();
}
```
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="EndBindReclaimedLock">
<MemberSignature Language="C#" Value="public void EndBindReclaimedLock (IAsyncResult result);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void EndBindReclaimedLock(class System.IAsyncResult result) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.EndBindReclaimedLock(System.IAsyncResult)" />
<MemberSignature Language="VB.NET" Value="Public Sub EndBindReclaimedLock (result As IAsyncResult)" />
<MemberSignature Language="F#" Value="member this.EndBindReclaimedLock : IAsyncResult -> unit" Usage="instancePersistenceContext.EndBindReclaimedLock result" />
<MemberSignature Language="C++ CLI" Value="public:
 void EndBindReclaimedLock(IAsyncResult ^ result);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="result" Type="System.IAsyncResult" />
</Parameters>
<Docs>
<param name="result">The result of the asynchronous operation.</param>
<summary>Ends the asynchronous operation started by the <see cref="M:System.Runtime.DurableInstancing.InstancePersistenceContext.BeginBindReclaimedLock(System.Int64,System.TimeSpan,System.AsyncCallback,System.Object)" /> method.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="EndExecute">
<MemberSignature Language="C#" Value="public void EndExecute (IAsyncResult result);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void EndExecute(class System.IAsyncResult result) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.EndExecute(System.IAsyncResult)" />
<MemberSignature Language="VB.NET" Value="Public Sub EndExecute (result As IAsyncResult)" />
<MemberSignature Language="F#" Value="member this.EndExecute : IAsyncResult -> unit" Usage="instancePersistenceContext.EndExecute result" />
<MemberSignature Language="C++ CLI" Value="public:
 void EndExecute(IAsyncResult ^ result);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="result" Type="System.IAsyncResult" />
</Parameters>
<Docs>
<param name="result">The status of an asynchronous operation.</param>
<summary>Ends the asynchronous operation.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Execute">
<MemberSignature Language="C#" Value="public void Execute (System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Execute(class System.Runtime.DurableInstancing.InstancePersistenceCommand command, valuetype System.TimeSpan timeout) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.Execute(System.Runtime.DurableInstancing.InstancePersistenceCommand,System.TimeSpan)" />
<MemberSignature Language="VB.NET" Value="Public Sub Execute (command As InstancePersistenceCommand, timeout As TimeSpan)" />
<MemberSignature Language="F#" Value="member this.Execute : System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan -> unit" Usage="instancePersistenceContext.Execute (command, timeout)" />
<MemberSignature Language="C++ CLI" Value="public:
 void Execute(System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.Runtime.DurableInstancing.InstancePersistenceCommand" />
<Parameter Name="timeout" Type="System.TimeSpan" />
</Parameters>
<Docs>
<param name="command">The persistence command to be executed.</param>
<param name="timeout">The time-out value for the operation.</param>
<summary>Executes a persistence command.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A persistence provider can use this method to execute sub-commands as part of a command. The sub-command will be executed using TryCommand, similar to commands passed to InstanceStore.Execute. Commands can be nested, but a command must not execute more than one sub-command at a time.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="InstanceHandle">
<MemberSignature Language="C#" Value="public System.Runtime.DurableInstancing.InstanceHandle InstanceHandle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Runtime.DurableInstancing.InstanceHandle InstanceHandle" />
<MemberSignature Language="DocId" Value="P:System.Runtime.DurableInstancing.InstancePersistenceContext.InstanceHandle" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property InstanceHandle As InstanceHandle" />
<MemberSignature Language="F#" Value="member this.InstanceHandle : System.Runtime.DurableInstancing.InstanceHandle" Usage="System.Runtime.DurableInstancing.InstancePersistenceContext.InstanceHandle" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Runtime::DurableInstancing::InstanceHandle ^ InstanceHandle { System::Runtime::DurableInstancing::InstanceHandle ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Runtime.DurableInstancing.InstanceHandle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the current instance handle.</summary>
<value>The current instance handle.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InstanceVersion">
<MemberSignature Language="C#" Value="public long InstanceVersion { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int64 InstanceVersion" />
<MemberSignature Language="DocId" Value="P:System.Runtime.DurableInstancing.InstancePersistenceContext.InstanceVersion" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property InstanceVersion As Long" />
<MemberSignature Language="F#" Value="member this.InstanceVersion : int64" Usage="System.Runtime.DurableInstancing.InstancePersistenceContext.InstanceVersion" />
<MemberSignature Language="C++ CLI" Value="public:
 property long InstanceVersion { long get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the version of the lock held on the current instance by the current instance handle.</summary>
<value>The version of the instance lock bound to the current instance handle, or -1 if the handle isn't bound to a lock.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The persistence provider should check this value against the lock version of the lock held on an instance in the instance store when performing an operation that requires a lock (such as persisting instance data) using a handle bound to the lock. If the lock version doesn't match, the command should fail with InstanceLockLostException.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="InstanceView">
<MemberSignature Language="C#" Value="public System.Runtime.DurableInstancing.InstanceView InstanceView { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Runtime.DurableInstancing.InstanceView InstanceView" />
<MemberSignature Language="DocId" Value="P:System.Runtime.DurableInstancing.InstancePersistenceContext.InstanceView" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property InstanceView As InstanceView" />
<MemberSignature Language="F#" Value="member this.InstanceView : System.Runtime.DurableInstancing.InstanceView" Usage="System.Runtime.DurableInstancing.InstancePersistenceContext.InstanceView" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Runtime::DurableInstancing::InstanceView ^ InstanceView { System::Runtime::DurableInstancing::InstanceView ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Runtime.DurableInstancing.InstanceView</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the instance view object that represents the in-memory state of the current instance. This view reflects updates as they are made by the command in progress.</summary>
<value>The instance view object.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LoadedInstance">
<MemberSignature Language="C#" Value="public void LoadedInstance (System.Runtime.DurableInstancing.InstanceState state, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> instanceData, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> instanceMetadata, System.Collections.Generic.IDictionary<Guid,System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>> associatedInstanceKeyMetadata, System.Collections.Generic.IDictionary<Guid,System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>> completedInstanceKeyMetadata);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void LoadedInstance(valuetype System.Runtime.DurableInstancing.InstanceState state, class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue> instanceData, class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue> instanceMetadata, class System.Collections.Generic.IDictionary`2<valuetype System.Guid, class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue>> associatedInstanceKeyMetadata, class System.Collections.Generic.IDictionary`2<valuetype System.Guid, class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue>> completedInstanceKeyMetadata) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.LoadedInstance(System.Runtime.DurableInstancing.InstanceState,System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue},System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue},System.Collections.Generic.IDictionary{System.Guid,System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue}},System.Collections.Generic.IDictionary{System.Guid,System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue}})" />
<MemberSignature Language="VB.NET" Value="Public Sub LoadedInstance (state As InstanceState, instanceData As IDictionary(Of XName, InstanceValue), instanceMetadata As IDictionary(Of XName, InstanceValue), associatedInstanceKeyMetadata As IDictionary(Of Guid, IDictionary(Of XName, InstanceValue)), completedInstanceKeyMetadata As IDictionary(Of Guid, IDictionary(Of XName, InstanceValue)))" />
<MemberSignature Language="F#" Value="member this.LoadedInstance : System.Runtime.DurableInstancing.InstanceState * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> * System.Collections.Generic.IDictionary<Guid, System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue>> * System.Collections.Generic.IDictionary<Guid, System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue>> -> unit" Usage="instancePersistenceContext.LoadedInstance (state, instanceData, instanceMetadata, associatedInstanceKeyMetadata, completedInstanceKeyMetadata)" />
<MemberSignature Language="C++ CLI" Value="public:
 void LoadedInstance(System::Runtime::DurableInstancing::InstanceState state, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ instanceData, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ instanceMetadata, System::Collections::Generic::IDictionary<Guid, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^> ^ associatedInstanceKeyMetadata, System::Collections::Generic::IDictionary<Guid, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^> ^ completedInstanceKeyMetadata);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="state" Type="System.Runtime.DurableInstancing.InstanceState" />
<Parameter Name="instanceData" Type="System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>" />
<Parameter Name="instanceMetadata" Type="System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>" />
<Parameter Name="associatedInstanceKeyMetadata" Type="System.Collections.Generic.IDictionary<System.Guid,System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>>" />
<Parameter Name="completedInstanceKeyMetadata" Type="System.Collections.Generic.IDictionary<System.Guid,System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>>" />
</Parameters>
<Docs>
<param name="state">The instance state information.</param>
<param name="instanceData">The instance data as a dictionary of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<param name="instanceMetadata">Instance metadata as a collection of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<param name="associatedInstanceKeyMetadata">Associated instance key metadata as a dictionary of instance identifier and instance key metadata, which is a dictionary of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<param name="completedInstanceKeyMetadata">Completed instance metadata as a dictionary of instance identifier and instance key metadata, which is a dictionary of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<summary>Indicates that the persistence provider has successfully retrieved the current instance from the instance store.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance. If the instance handle is bound to a lock or the loaded instance is marked as complete, the loaded data is considered to be consistent; otherwise, it is considered to be in doubt.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="LockToken">
<MemberSignature Language="C#" Value="public Guid LockToken { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Guid LockToken" />
<MemberSignature Language="DocId" Value="P:System.Runtime.DurableInstancing.InstancePersistenceContext.LockToken" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property LockToken As Guid" />
<MemberSignature Language="F#" Value="member this.LockToken : Guid" Usage="System.Runtime.DurableInstancing.InstancePersistenceContext.LockToken" />
<MemberSignature Language="C++ CLI" Value="public:
 property Guid LockToken { Guid get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Guid</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the lock token of the instance owner bound to the current instance handle.</summary>
<value>The lock token bound to the current instance handle, or <see cref="F:System.Guid.Empty" /> if the handle isn't bound to an instance owner.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The persistence provider should check this value against the lock token of the lock held on an instance in the instance store when performing an operation that requires a lock (such as persisting instance data) using a handle bound to the lock. If the lock token doesn't match, the command should fail with InstanceLockLostException.
The persistence provider should use this value as the lock token when acquiring a new lock on an instance (such as persisting instance data using a handle not already bound to a lock). If the instance is already locked in the instance store and the lock token matches this lock token, the persistence provider can attempt to reclaim the instance using BindReclaimedLock.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="PersistedInstance">
<MemberSignature Language="C#" Value="public void PersistedInstance (System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> data);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PersistedInstance(class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue> data) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.PersistedInstance(System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue})" />
<MemberSignature Language="VB.NET" Value="Public Sub PersistedInstance (data As IDictionary(Of XName, InstanceValue))" />
<MemberSignature Language="F#" Value="member this.PersistedInstance : System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> -> unit" Usage="instancePersistenceContext.PersistedInstance data" />
<MemberSignature Language="C++ CLI" Value="public:
 void PersistedInstance(System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ data);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="data" Type="System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>" />
</Parameters>
<Docs>
<param name="data">Instance data as a dictionary of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<summary>Indicates that the persistence provider has successfully persisted a set of instance data to the instance store. This has the effect of initializing the instance if it wasn't already.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance as well as a lock on that instance. Each set of instance data completely replaces the previous set. The set of instance data may be null - this is the same as empty. Persisting a null set of instance data deletes the existing set of instance data. (Persisting a set of instance data has no effect on instance metadata.)
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="QueriedInstanceStore">
<MemberSignature Language="C#" Value="public void QueriedInstanceStore (System.Runtime.DurableInstancing.InstanceStoreQueryResult queryResult);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void QueriedInstanceStore(class System.Runtime.DurableInstancing.InstanceStoreQueryResult queryResult) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.QueriedInstanceStore(System.Runtime.DurableInstancing.InstanceStoreQueryResult)" />
<MemberSignature Language="VB.NET" Value="Public Sub QueriedInstanceStore (queryResult As InstanceStoreQueryResult)" />
<MemberSignature Language="F#" Value="member this.QueriedInstanceStore : System.Runtime.DurableInstancing.InstanceStoreQueryResult -> unit" Usage="instancePersistenceContext.QueriedInstanceStore queryResult" />
<MemberSignature Language="C++ CLI" Value="public:
 void QueriedInstanceStore(System::Runtime::DurableInstancing::InstanceStoreQueryResult ^ queryResult);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="queryResult" Type="System.Runtime.DurableInstancing.InstanceStoreQueryResult" />
</Parameters>
<Docs>
<param name="queryResult">The results of a query against an instance store.</param>
<summary>Adds the <see cref="T:System.Runtime.DurableInstancing.InstanceStoreQueryResult" /> passed as a parameter to a list of <see cref="T:System.Runtime.DurableInstancing.InstanceStoreQueryResult" /> objects in an <see cref="T:System.Runtime.DurableInstancing.InstanceView" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ReadInstanceKeyMetadata">
<MemberSignature Language="C#" Value="public void ReadInstanceKeyMetadata (Guid key, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> metadata, bool complete);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ReadInstanceKeyMetadata(valuetype System.Guid key, class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue> metadata, bool complete) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.ReadInstanceKeyMetadata(System.Guid,System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue},System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub ReadInstanceKeyMetadata (key As Guid, metadata As IDictionary(Of XName, InstanceValue), complete As Boolean)" />
<MemberSignature Language="F#" Value="member this.ReadInstanceKeyMetadata : Guid * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> * bool -> unit" Usage="instancePersistenceContext.ReadInstanceKeyMetadata (key, metadata, complete)" />
<MemberSignature Language="C++ CLI" Value="public:
 void ReadInstanceKeyMetadata(Guid key, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ metadata, bool complete);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Guid" />
<Parameter Name="metadata" Type="System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>" />
<Parameter Name="complete" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="key">The instance key identifier for the key whose metadata was read. Must not be Guid.Empty.</param>
<param name="metadata">The metadata as a dictionary of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<param name="complete">
<see langword="true" /> if the metadata represents all of the metadata associated to the instance key; otherwise, <see langword="false" />.</param>
<summary>Indicates that the persistence provider has successfully read some instance key metadata for a key associated to the current instance from the instance store.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance. If the instance handle is bound to a lock or the current instance is marked as complete, the metadata is considered to be consistent; otherwise, it is considered to be in doubt.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ReadInstanceMetadata">
<MemberSignature Language="C#" Value="public void ReadInstanceMetadata (System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> metadata, bool complete);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ReadInstanceMetadata(class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue> metadata, bool complete) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.ReadInstanceMetadata(System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue},System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub ReadInstanceMetadata (metadata As IDictionary(Of XName, InstanceValue), complete As Boolean)" />
<MemberSignature Language="F#" Value="member this.ReadInstanceMetadata : System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> * bool -> unit" Usage="instancePersistenceContext.ReadInstanceMetadata (metadata, complete)" />
<MemberSignature Language="C++ CLI" Value="public:
 void ReadInstanceMetadata(System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ metadata, bool complete);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="metadata" Type="System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>" />
<Parameter Name="complete" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="metadata">The metadata as a dictionary of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<param name="complete">
<see langword="true" /> if the metadata represents all of the metadata associated to the instance; otherwise, <see langword="false" />.</param>
<summary>Indicates that the persistence provider has successfully read some instance metadata for the current instance from the instance store.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ReadInstanceOwnerMetadata">
<MemberSignature Language="C#" Value="public void ReadInstanceOwnerMetadata (System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> metadata, bool complete);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ReadInstanceOwnerMetadata(class System.Collections.Generic.IDictionary`2<class System.Xml.Linq.XName, class System.Runtime.DurableInstancing.InstanceValue> metadata, bool complete) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.ReadInstanceOwnerMetadata(System.Collections.Generic.IDictionary{System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue},System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub ReadInstanceOwnerMetadata (metadata As IDictionary(Of XName, InstanceValue), complete As Boolean)" />
<MemberSignature Language="F#" Value="member this.ReadInstanceOwnerMetadata : System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> * bool -> unit" Usage="instancePersistenceContext.ReadInstanceOwnerMetadata (metadata, complete)" />
<MemberSignature Language="C++ CLI" Value="public:
 void ReadInstanceOwnerMetadata(System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ metadata, bool complete);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="metadata" Type="System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue>" />
<Parameter Name="complete" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="metadata">The dictionary of <see cref="T:System.Xml.Linq.XName" /> and <see cref="T:System.Runtime.DurableInstancing.InstanceValue" /> objects.</param>
<param name="complete">The value to specify whether the consistency to be set to <see cref="F:System.Runtime.DurableInstancing.InstanceValueConsistency.InDoubt" /> or <see cref="F:System.Runtime.DurableInstancing.InstanceValueConsistency.Partial" />.</param>
<summary>Sets the instance owner metadata using the data passed in the parameter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance. If the instance handle is bound to a lock or the current instance is marked as complete, the metadata is considered to be consistent; otherwise, it is considered to be in doubt.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="SetCancellationHandler">
<MemberSignature Language="C#" Value="public void SetCancellationHandler (Action<System.Runtime.DurableInstancing.InstancePersistenceContext> cancellationHandler);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetCancellationHandler(class System.Action`1<class System.Runtime.DurableInstancing.InstancePersistenceContext> cancellationHandler) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.SetCancellationHandler(System.Action{System.Runtime.DurableInstancing.InstancePersistenceContext})" />
<MemberSignature Language="VB.NET" Value="Public Sub SetCancellationHandler (cancellationHandler As Action(Of InstancePersistenceContext))" />
<MemberSignature Language="F#" Value="member this.SetCancellationHandler : Action<System.Runtime.DurableInstancing.InstancePersistenceContext> -> unit" Usage="instancePersistenceContext.SetCancellationHandler cancellationHandler" />
<MemberSignature Language="C++ CLI" Value="public:
 void SetCancellationHandler(Action<System::Runtime::DurableInstancing::InstancePersistenceContext ^> ^ cancellationHandler);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cancellationHandler" Type="System.Action<System.Runtime.DurableInstancing.InstancePersistenceContext>" />
</Parameters>
<Docs>
<param name="cancellationHandler">The reference to a function to be called.</param>
<summary>Sets the cancellation handler to be called when the cancel of an operation is requested.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the cancellation handler is called, the persistence provider should cancel all pending operations and throw OperationCanceledException from TryCommand to indicate that the persistence command was interrupted before it could be completed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="UnassociatedInstanceKey">
<MemberSignature Language="C#" Value="public void UnassociatedInstanceKey (Guid key);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void UnassociatedInstanceKey(valuetype System.Guid key) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.UnassociatedInstanceKey(System.Guid)" />
<MemberSignature Language="VB.NET" Value="Public Sub UnassociatedInstanceKey (key As Guid)" />
<MemberSignature Language="F#" Value="member this.UnassociatedInstanceKey : Guid -> unit" Usage="instancePersistenceContext.UnassociatedInstanceKey key" />
<MemberSignature Language="C++ CLI" Value="public:
 void UnassociatedInstanceKey(Guid key);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Guid" />
</Parameters>
<Docs>
<param name="key">The instance key identifier for the key that has been unassociated. Must not be Guid.Empty.</param>
<summary>Indicates that the persistence provider has successfully disassociated a key from the current instance in the instance store. The identifier of the key is specified as a parameter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance as well as a lock on that instance. The instance key must be associated to the current instance and must be marked complete. The current instance must not be marked complete.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="UserContext">
<MemberSignature Language="C#" Value="public object UserContext { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance object UserContext" />
<MemberSignature Language="DocId" Value="P:System.Runtime.DurableInstancing.InstancePersistenceContext.UserContext" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property UserContext As Object" />
<MemberSignature Language="F#" Value="member this.UserContext : obj" Usage="System.Runtime.DurableInstancing.InstancePersistenceContext.UserContext" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Object ^ UserContext { System::Object ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the user context information attached to the current instance handle.</summary>
<value>The user context information.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The object is the one that is returned from InstanceStore.OnNewInstanceHandle for the current instance handle.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="WroteInstanceKeyMetadataValue">
<MemberSignature Language="C#" Value="public void WroteInstanceKeyMetadataValue (Guid key, System.Xml.Linq.XName name, System.Runtime.DurableInstancing.InstanceValue value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WroteInstanceKeyMetadataValue(valuetype System.Guid key, class System.Xml.Linq.XName name, class System.Runtime.DurableInstancing.InstanceValue value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.WroteInstanceKeyMetadataValue(System.Guid,System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue)" />
<MemberSignature Language="VB.NET" Value="Public Sub WroteInstanceKeyMetadataValue (key As Guid, name As XName, value As InstanceValue)" />
<MemberSignature Language="F#" Value="member this.WroteInstanceKeyMetadataValue : Guid * System.Xml.Linq.XName * System.Runtime.DurableInstancing.InstanceValue -> unit" Usage="instancePersistenceContext.WroteInstanceKeyMetadataValue (key, name, value)" />
<MemberSignature Language="C++ CLI" Value="public:
 void WroteInstanceKeyMetadataValue(Guid key, System::Xml::Linq::XName ^ name, System::Runtime::DurableInstancing::InstanceValue ^ value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Guid" />
<Parameter Name="name" Type="System.Xml.Linq.XName" />
<Parameter Name="value" Type="System.Runtime.DurableInstancing.InstanceValue" />
</Parameters>
<Docs>
<param name="key">The instance key identifier for the key. Must not be Guid.Empty.</param>
<param name="name">The name of the metadata property.</param>
<param name="value">The value of the metadata property.</param>
<summary>Indicates that the persistence provider has successfully written a metadata value for an instance key that is associated with the current instance to the instance store.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance as well as a lock on that instance. The instance key must be associated with the current instance and must not be completed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="WroteInstanceMetadataValue">
<MemberSignature Language="C#" Value="public void WroteInstanceMetadataValue (System.Xml.Linq.XName name, System.Runtime.DurableInstancing.InstanceValue value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WroteInstanceMetadataValue(class System.Xml.Linq.XName name, class System.Runtime.DurableInstancing.InstanceValue value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.WroteInstanceMetadataValue(System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue)" />
<MemberSignature Language="VB.NET" Value="Public Sub WroteInstanceMetadataValue (name As XName, value As InstanceValue)" />
<MemberSignature Language="F#" Value="member this.WroteInstanceMetadataValue : System.Xml.Linq.XName * System.Runtime.DurableInstancing.InstanceValue -> unit" Usage="instancePersistenceContext.WroteInstanceMetadataValue (name, value)" />
<MemberSignature Language="C++ CLI" Value="public:
 void WroteInstanceMetadataValue(System::Xml::Linq::XName ^ name, System::Runtime::DurableInstancing::InstanceValue ^ value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.Xml.Linq.XName" />
<Parameter Name="value" Type="System.Runtime.DurableInstancing.InstanceValue" />
</Parameters>
<Docs>
<param name="name">The name of the metadata property.</param>
<param name="value">The value of the metadata property.</param>
<summary>Indicates that the persistence provider has successfully written a metadata value for the current instance to the external instance store.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance as well as has a lock on that instance. The instance must not be completed.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="WroteInstanceOwnerMetadataValue">
<MemberSignature Language="C#" Value="public void WroteInstanceOwnerMetadataValue (System.Xml.Linq.XName name, System.Runtime.DurableInstancing.InstanceValue value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WroteInstanceOwnerMetadataValue(class System.Xml.Linq.XName name, class System.Runtime.DurableInstancing.InstanceValue value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.DurableInstancing.InstancePersistenceContext.WroteInstanceOwnerMetadataValue(System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue)" />
<MemberSignature Language="VB.NET" Value="Public Sub WroteInstanceOwnerMetadataValue (name As XName, value As InstanceValue)" />
<MemberSignature Language="F#" Value="member this.WroteInstanceOwnerMetadataValue : System.Xml.Linq.XName * System.Runtime.DurableInstancing.InstanceValue -> unit" Usage="instancePersistenceContext.WroteInstanceOwnerMetadataValue (name, value)" />
<MemberSignature Language="C++ CLI" Value="public:
 void WroteInstanceOwnerMetadataValue(System::Xml::Linq::XName ^ name, System::Runtime::DurableInstancing::InstanceValue ^ value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.DurableInstancing</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.Xml.Linq.XName" />
<Parameter Name="value" Type="System.Runtime.DurableInstancing.InstanceValue" />
</Parameters>
<Docs>
<param name="name">The name of the metadata property.</param>
<param name="value">The value of the metadata property.</param>
<summary>Indicates that the persistence provider has successfully written a metadata value for the current instance owner to the instance store.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The current instance handle must be bound to an instance owner.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>