예제 #1
0
 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"));
 }
예제 #2
0
        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));
        }
예제 #3
0
 public AsyncEnumerateOperationData(NativeRuntime.IFabricOperationDataStream enumerator)
 {
     Requires.Argument("enumerator", enumerator).NotNull();
     this.enumerator = enumerator;
 }