IStateProvider.GetCopyContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Obtains context on a secondary replica after it is created and opened to send context to the primary replica.
public System.Fabric.IOperationDataStream GetCopyContext ();
abstract member GetCopyContext : unit -> System.Fabric.IOperationDataStream
Public Function GetCopyContext () As IOperationDataStream
Returns
Returns IOperationDataStream.
Remarks
The primary replica analyzes the context and sends back state via GetCopyState(Int64, IOperationDataStream).
GetCopyContext() is called on newly created, idle secondary replicas and provides a mechanism to asynchronously establish a bidirectional conversation with the primary replica. The secondary replica sends OperationData objects with which the primary replica can determine the progress of collecting context on the secondary replica. The primary replica responds by sending the required state back. See GetCopyState(Int64, IOperationDataStream) at the primary replica for the other half of the exchange.
For in-memory services, the GetCopyContext() method is not called, as the state of the secondary replicas is known (they are empty and will require all of the state).
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기