private NativeRuntime.IFabricOperationDataStream GetCopyContextHelper() { IOperationDataStreamEx copyContext = this.stateProvider.GetCopyContext(); AsyncEnumerateOperationDataBroker comCopyContext = AsyncEnumerateOperationDataBroker.ToNative(copyContext, this.OperationDataFactory); return(comCopyContext); }
private AsyncEnumerateOperationDataBroker(IOperationDataStreamEx enumerator, OperationDataFactoryWrapper operationDataFactory) { Requires.Argument("enumerator", enumerator).NotNull(); Requires.Argument("operationDataFactory", operationDataFactory).NotNull(); this.enumerator = enumerator; this.operationDataFactory = operationDataFactory; }
private NativeRuntime.IFabricOperationDataStream GetCopyStateHelper(long uptoSequenceNumber, NativeRuntime.IFabricOperationDataStream comCopyContext) { IOperationDataStreamEx copyState = null; AsyncEnumerateOperationData copyContext = comCopyContext == null ? null : new AsyncEnumerateOperationData(comCopyContext); copyState = this.stateProvider.GetCopyState(uptoSequenceNumber, copyContext); return(AsyncEnumerateOperationDataBroker.ToNative(copyState, this.OperationDataFactory)); }
public static AsyncEnumerateOperationDataBroker ToNative(IOperationDataStreamEx enumerator, OperationDataFactoryWrapper operationDataFactory) { if (enumerator == null) { return(null); } else { var native = new AsyncEnumerateOperationDataBroker(enumerator, operationDataFactory); return(native); } }