Beispiel #1
0
        private NativeRuntime.IFabricOperationDataStream GetCopyContextHelper()
        {
            IOperationDataStreamEx            copyContext    = this.stateProvider.GetCopyContext();
            AsyncEnumerateOperationDataBroker comCopyContext = AsyncEnumerateOperationDataBroker.ToNative(copyContext, this.OperationDataFactory);

            return(comCopyContext);
        }
Beispiel #2
0
 private AsyncEnumerateOperationDataBroker(IOperationDataStreamEx enumerator, OperationDataFactoryWrapper operationDataFactory)
 {
     Requires.Argument("enumerator", enumerator).NotNull();
     Requires.Argument("operationDataFactory", operationDataFactory).NotNull();
     this.enumerator           = enumerator;
     this.operationDataFactory = operationDataFactory;
 }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 public static AsyncEnumerateOperationDataBroker ToNative(IOperationDataStreamEx enumerator, OperationDataFactoryWrapper operationDataFactory)
 {
     if (enumerator == null)
     {
         return(null);
     }
     else
     {
         var native = new AsyncEnumerateOperationDataBroker(enumerator, operationDataFactory);
         return(native);
     }
 }