Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqIntegration / MsmqMessage.cs / 1 / MsmqMessage.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.MsmqIntegration { using System.Messaging; using System.ServiceModel; using System.ServiceModel.Channels; [MessageContract(IsWrapped = false)] public sealed class MsmqMessage{ [MessageProperty(Name = MsmqIntegrationMessageProperty.Name)] MsmqIntegrationMessageProperty property; public MsmqMessage(T body) { if (body == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("body"); this.property = new MsmqIntegrationMessageProperty(); this.property.Body = body; } internal MsmqMessage() {} public T Body { get { return (T)this.property.Body; } set { if (value == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); this.property.Body = value; } } public AcknowledgeTypes? AcknowledgeType { get { return this.property.AcknowledgeType; } set { this.property.AcknowledgeType = value; } } public Acknowledgment? Acknowledgment { get { return this.property.Acknowledgment; } } public Uri AdministrationQueue { get { return this.property.AdministrationQueue; } set { this.property.AdministrationQueue = value; } } public int? AppSpecific { get { return this.property.AppSpecific; } set { this.property.AppSpecific = value; } } public DateTime? ArrivedTime { get { return this.property.ArrivedTime; } } public bool? Authenticated { get { return this.property.Authenticated; } } public int? BodyType { get { return this.property.BodyType; } set { this.property.BodyType = value; } } public string CorrelationId { get { return this.property.CorrelationId; } set { this.property.CorrelationId = value; } } public Uri DestinationQueue { get { return this.property.DestinationQueue; } } public byte[] Extension { get { return this.property.Extension; } set { this.property.Extension = value; } } public string Id { get { return this.property.Id; } } public string Label { get { return this.property.Label; } set { this.property.Label = value; } } public MessageType? MessageType { get { return this.property.MessageType; } } public MessagePriority? Priority { get { return this.property.Priority; } set { this.property.Priority = value; } } public Uri ResponseQueue { get { return this.property.ResponseQueue; } set { this.property.ResponseQueue = value; } } public byte[] SenderId { get { return this.property.SenderId; } } public DateTime? SentTime { get { return this.property.SentTime; } } public TimeSpan? TimeToReachQueue { get { return this.property.TimeToReachQueue; } set { this.property.TimeToReachQueue = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CaseInsensitiveHashCodeProvider.cs
- XmlElementElementCollection.cs
- SettingsPropertyWrongTypeException.cs
- HostedHttpContext.cs
- Geometry3D.cs
- RichTextBoxConstants.cs
- ScriptRef.cs
- SystemBrushes.cs
- CheckBoxPopupAdapter.cs
- CachedPathData.cs
- SequenceNumber.cs
- SystemDiagnosticsSection.cs
- PartitionedStream.cs
- UpdatePanelControlTrigger.cs
- ZipIOExtraField.cs
- TextEncodedRawTextWriter.cs
- ResourcePermissionBaseEntry.cs
- ParameterCollection.cs
- CodeFieldReferenceExpression.cs
- InstancePersistence.cs
- SystemFonts.cs
- IISUnsafeMethods.cs
- CalendarDay.cs
- SystemNetHelpers.cs
- Types.cs
- EntityTemplateUserControl.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SyntaxCheck.cs
- Evaluator.cs
- WebRequestModulesSection.cs
- SubtreeProcessor.cs
- CallbackHandler.cs
- SpecialFolderEnumConverter.cs
- WebReferenceOptions.cs
- _FtpControlStream.cs
- FormView.cs
- SchemaLookupTable.cs
- RawStylusInputReport.cs
- SpeechSeg.cs
- DetailsViewModeEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- BitmapEffect.cs
- HttpModuleCollection.cs
- CompiledQuery.cs
- ActivityMarkupSerializationProvider.cs
- SqlBooleanizer.cs
- JpegBitmapDecoder.cs
- MetadataUtilsSmi.cs
- ArithmeticException.cs
- HttpDebugHandler.cs
- ProviderMetadataCachedInformation.cs
- HtmlInputReset.cs
- TranslateTransform3D.cs
- Stack.cs
- CorrelationManager.cs
- CodeComment.cs
- Line.cs
- SpecularMaterial.cs
- Geometry3D.cs
- AsymmetricCryptoHandle.cs
- SortQuery.cs
- ValidationError.cs
- LazyTextWriterCreator.cs
- RtfControlWordInfo.cs
- LocalValueEnumerator.cs
- GridView.cs
- BamlWriter.cs
- NetworkAddressChange.cs
- StyleTypedPropertyAttribute.cs
- TextEditorCharacters.cs
- SapiAttributeParser.cs
- AuthenticationManager.cs
- WrappedReader.cs
- FragmentQuery.cs
- EncoderFallback.cs
- DataSpaceManager.cs
- ServiceModelReg.cs
- IndentedWriter.cs
- SizeConverter.cs
- WSSecurityXXX2005.cs
- Calendar.cs
- BrowserDefinition.cs
- ComUdtElement.cs
- DispatcherBuilder.cs
- DictionaryTraceRecord.cs
- FlowDocumentReaderAutomationPeer.cs
- WrappedReader.cs
- UserNamePasswordValidator.cs
- CheckBoxPopupAdapter.cs
- CurrentChangedEventManager.cs
- DataGridViewCellMouseEventArgs.cs
- InternalBufferOverflowException.cs
- XmlElementAttribute.cs
- WindowsEditBox.cs
- TableParagraph.cs
- XsltConvert.cs
- Int16AnimationBase.cs
- DetailsViewInsertEventArgs.cs
- OrderByBuilder.cs
- CustomAttributeBuilder.cs