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)); }
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); }