public NativeRuntime.IFabricOperationDataStream GetCopyState(long uptoSequenceNumber, NativeRuntime.IFabricOperationDataStream comCopyContext) { ReleaseAssert.AssertIfNot(this.OperationDataFactory != null, StringResources.Error_OperationDataFactoryNotSet); return(Utility.WrapNativeSyncMethodImplementation <NativeRuntime.IFabricOperationDataStream>(() => this.GetCopyStateHelper(uptoSequenceNumber, comCopyContext), "StateProviderBroker.GetCopyState")); }
private NativeRuntime.IFabricOperationDataStream GetCopyStateHelper(long uptoSequenceNumber, NativeRuntime.IFabricOperationDataStream comCopyContext) { IOperationDataStream copyState = null; AsyncEnumerateOperationData copyContext = comCopyContext == null ? null : new AsyncEnumerateOperationData(comCopyContext); copyState = this.stateProvider.GetCopyState(uptoSequenceNumber, copyContext); return(AsyncEnumerateOperationDataBroker.ToNative(copyState, this.OperationDataFactory)); }
public AsyncEnumerateOperationData(NativeRuntime.IFabricOperationDataStream enumerator) { Requires.Argument("enumerator", enumerator).NotNull(); this.enumerator = enumerator; }