Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / PeerResolvers / RegisterResponseInfo.cs / 1 / RegisterResponseInfo.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.PeerResolvers { using System.ServiceModel.Channels; using System.ServiceModel; using System.Runtime.Serialization; [MessageContract(IsWrapped = false)] public class RegisterResponseInfo { [DataContract(Name = "RegisterResponse", Namespace = PeerStrings.Namespace)] class RegisterResponseInfoDC { [DataMember(Name = "RegistrationLifetime")] public TimeSpan RegistrationLifetime; [DataMember(Name = "RegistrationId")] public Guid RegistrationId; public RegisterResponseInfoDC(){} public RegisterResponseInfoDC(Guid registrationId, TimeSpan registrationLifetime) { this.RegistrationLifetime = registrationLifetime; this.RegistrationId = registrationId; } } public RegisterResponseInfo(Guid registrationId, TimeSpan registrationLifetime) { body = new RegisterResponseInfoDC(registrationId, registrationLifetime); } public RegisterResponseInfo() { body = new RegisterResponseInfoDC(); } public Guid RegistrationId { get { return this.body.RegistrationId; } set { this.body.RegistrationId = value; } } public TimeSpan RegistrationLifetime { get { return this.body.RegistrationLifetime; } set { if (value < TimeSpan.Zero) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.SFxTimeoutOutOfRange0))); } if (TimeoutHelper.IsTooLarge(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.SFxTimeoutOutOfRangeTooBig))); } this.body.RegistrationLifetime = value; } } [MessageBodyMember(Name = "Update", Namespace = PeerStrings.Namespace)] RegisterResponseInfoDC body; public bool HasBody() { return body != null; } } } // 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
- GridViewSortEventArgs.cs
- WSDualHttpBindingCollectionElement.cs
- DataServiceBehavior.cs
- MessageEnumerator.cs
- TableLayoutPanelCellPosition.cs
- Table.cs
- DataGridPagingPage.cs
- DoubleCollectionConverter.cs
- CodePropertyReferenceExpression.cs
- DataSourceXmlSubItemAttribute.cs
- IndexingContentUnit.cs
- CheckedPointers.cs
- SchemaImporterExtensionElementCollection.cs
- ExceptionHandler.cs
- HandlerFactoryWrapper.cs
- EngineSite.cs
- PrintDocument.cs
- DataServiceQueryProvider.cs
- FixedStringLookup.cs
- AuthorizationRuleCollection.cs
- DataTableCollection.cs
- MenuItemStyleCollection.cs
- DesignerActionPanel.cs
- UserControlParser.cs
- ResourcePart.cs
- SqlStream.cs
- MonthCalendar.cs
- BoolExpressionVisitors.cs
- DirtyTextRange.cs
- DecimalFormatter.cs
- WindowsGraphics.cs
- Symbol.cs
- ContextMenuAutomationPeer.cs
- controlskin.cs
- QueueAccessMode.cs
- ToolStripPanelSelectionGlyph.cs
- EdmItemCollection.OcAssemblyCache.cs
- Rfc2898DeriveBytes.cs
- ScrollChrome.cs
- BooleanFunctions.cs
- CallbackHandler.cs
- HatchBrush.cs
- MiniParameterInfo.cs
- BufferBuilder.cs
- DrawingContextDrawingContextWalker.cs
- XPathScanner.cs
- SchemaSetCompiler.cs
- TransactionManager.cs
- HttpApplicationFactory.cs
- dbdatarecord.cs
- FileCodeGroup.cs
- CallContext.cs
- MaterialCollection.cs
- BlobPersonalizationState.cs
- VSDExceptions.cs
- SafeCertificateStore.cs
- XslAst.cs
- UnsettableComboBox.cs
- X500Name.cs
- DEREncoding.cs
- LayoutExceptionEventArgs.cs
- FormViewActionList.cs
- UpdateTranslator.cs
- EntryWrittenEventArgs.cs
- DataKeyArray.cs
- Int64Storage.cs
- WindowsSolidBrush.cs
- PointKeyFrameCollection.cs
- QueryAccessibilityHelpEvent.cs
- TraceProvider.cs
- MatrixStack.cs
- BoundingRectTracker.cs
- DataObjectCopyingEventArgs.cs
- UrlMapping.cs
- RichTextBoxAutomationPeer.cs
- TreeNodeStyleCollection.cs
- SettingsSection.cs
- AutomationProperty.cs
- BridgeDataRecord.cs
- TransformerInfoCollection.cs
- HttpCookieCollection.cs
- ProviderConnectionPoint.cs
- CodeParameterDeclarationExpressionCollection.cs
- Wrapper.cs
- TransformDescriptor.cs
- PermissionToken.cs
- ActivityBindForm.Designer.cs
- StringDictionaryEditor.cs
- DataGridCell.cs
- DoubleStorage.cs
- RenderData.cs
- HttpRuntimeSection.cs
- FormViewDeletedEventArgs.cs
- HttpEncoder.cs
- ImageCodecInfo.cs
- PagedControl.cs
- PathTooLongException.cs
- HandleExceptionArgs.cs
- IndentTextWriter.cs
- CompilerErrorCollection.cs