示例#1
0
        private IOperationData ReceiveEndWrapper(NativeCommon.IFabricAsyncOperationContext context)
        {
            NativeRuntime.IFabricOperationData nativeReceiveMessage = null;
            // AppTrace.TraceSource.WriteNoise("NativeReliableSession.EndReceive");
            nativeReceiveMessage = this.nativeReliableSession.EndReceive(context);
            IOperationData result = new ReadOnlyOperationData(nativeReceiveMessage);

            return(new InboundMessage(result));
        }
示例#2
0
        private NativeRuntime.IFabricOperationData GetOrCreateOperationData(IOperationData operationData)
        {
            OperationData managed = operationData as OperationData;

            if (managed != null)
            {
                return(this.operationDataFactory.CreateOperationData(managed));
            }

            ReadOnlyOperationData native = operationData as ReadOnlyOperationData;

            if (native != null)
            {
                return(native.NativeOperationData);
            }

            return(null);
        }