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
- PropertyInformationCollection.cs
- CompilationUtil.cs
- XappLauncher.cs
- CodeGenerator.cs
- WriteTimeStream.cs
- CodeExpressionStatement.cs
- WindowsFormsHost.cs
- AnonymousIdentificationModule.cs
- SystemIPGlobalProperties.cs
- WaitHandle.cs
- NavigationProgressEventArgs.cs
- TreeNodeCollection.cs
- SoapReflectionImporter.cs
- BuildProvidersCompiler.cs
- Int32CollectionConverter.cs
- CommandSet.cs
- DataGridViewSelectedCellCollection.cs
- DrawToolTipEventArgs.cs
- MemoryFailPoint.cs
- MemoryMappedView.cs
- ValidationRuleCollection.cs
- ColorContextHelper.cs
- UseLicense.cs
- TextServicesContext.cs
- TabControl.cs
- ThaiBuddhistCalendar.cs
- ControlEvent.cs
- ScopelessEnumAttribute.cs
- SqlVersion.cs
- CalendarDataBindingHandler.cs
- FilterableAttribute.cs
- HtmlValidationSummaryAdapter.cs
- WpfSharedXamlSchemaContext.cs
- messageonlyhwndwrapper.cs
- webbrowsersite.cs
- XmlSchemaCompilationSettings.cs
- CheckBoxStandardAdapter.cs
- SqlCacheDependencyDatabase.cs
- ConstructorBuilder.cs
- ValueType.cs
- NamedPipeTransportBindingElement.cs
- StreamingContext.cs
- IgnoreDataMemberAttribute.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- EncodingDataItem.cs
- CodeAttributeDeclaration.cs
- LayoutEditorPart.cs
- DesignerHelpers.cs
- HelpFileFileNameEditor.cs
- DecimalSumAggregationOperator.cs
- BitmapMetadata.cs
- TraceListener.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CultureTable.cs
- XmlWellformedWriterHelpers.cs
- DocumentReferenceCollection.cs
- VisualCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ThicknessAnimationBase.cs
- XmlWhitespace.cs
- ConfigurationStrings.cs
- QueryConverter.cs
- StructuredTypeEmitter.cs
- CaseStatement.cs
- util.cs
- DummyDataSource.cs
- ITextView.cs
- ComponentSerializationService.cs
- ListControlActionList.cs
- ToolStripDropDownClosingEventArgs.cs
- LastQueryOperator.cs
- HttpCookiesSection.cs
- HitTestParameters.cs
- PointLightBase.cs
- SocketManager.cs
- DataGridViewRowCancelEventArgs.cs
- ServiceProviders.cs
- SizeAnimationClockResource.cs
- WeakHashtable.cs
- VersionConverter.cs
- TypeBrowserDialog.cs
- TextRangeAdaptor.cs
- DockAndAnchorLayout.cs
- DataGridViewCellValidatingEventArgs.cs
- EnumBuilder.cs
- ErrorStyle.cs
- GridViewColumnHeader.cs
- EventProperty.cs
- DataGridTemplateColumn.cs
- CheckBoxField.cs
- DbInsertCommandTree.cs
- IListConverters.cs
- ContextMenuAutomationPeer.cs
- SelectionPattern.cs
- WorkItem.cs
- RequestCachePolicyConverter.cs
- VoiceChangeEventArgs.cs
- XmlTextEncoder.cs
- HashHelper.cs
- AQNBuilder.cs