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
- QilInvokeEarlyBound.cs
- SqlConnectionHelper.cs
- DrawingBrush.cs
- HwndSubclass.cs
- XmlChildEnumerator.cs
- ConfigurationSettings.cs
- ToolStripComboBox.cs
- ToolStripDropDownButton.cs
- StorageRoot.cs
- controlskin.cs
- ObjectItemCollection.cs
- UpDownBaseDesigner.cs
- oledbmetadatacollectionnames.cs
- PassportIdentity.cs
- RuleSetBrowserDialog.cs
- VirtualPathProvider.cs
- BrowserCapabilitiesCompiler.cs
- VisualStyleElement.cs
- AbstractSvcMapFileLoader.cs
- BulletDecorator.cs
- DataSourceXmlClassAttribute.cs
- QueryCacheEntry.cs
- WCFModelStrings.Designer.cs
- MetabaseSettings.cs
- ObjectDataSourceSelectingEventArgs.cs
- DocumentAutomationPeer.cs
- RuntimeEnvironment.cs
- TreeView.cs
- MimeParameter.cs
- AmbientLight.cs
- SqlConnectionPoolProviderInfo.cs
- Error.cs
- LogicalExpr.cs
- Graphics.cs
- MenuEventArgs.cs
- InvalidEnumArgumentException.cs
- WorkflowMarkupElementEventArgs.cs
- ColorTranslator.cs
- XsltCompileContext.cs
- FormsAuthenticationModule.cs
- HtmlToClrEventProxy.cs
- InternalConfigHost.cs
- WindowAutomationPeer.cs
- GraphicsContext.cs
- SimpleParser.cs
- MobileRedirect.cs
- SchemaObjectWriter.cs
- ObjectAnimationUsingKeyFrames.cs
- AdapterDictionary.cs
- RegexRunner.cs
- PeerCredentialElement.cs
- Size.cs
- DataRow.cs
- Deserializer.cs
- ListView.cs
- XPathChildIterator.cs
- ImageAutomationPeer.cs
- ServiceProviders.cs
- KnownTypeAttribute.cs
- ToolboxItem.cs
- DataSourceControlBuilder.cs
- ContentValidator.cs
- PlainXmlWriter.cs
- MergeFilterQuery.cs
- DiscoveryClientRequestChannel.cs
- SqlConnectionPoolProviderInfo.cs
- _Events.cs
- AsymmetricSecurityBindingElement.cs
- FtpWebResponse.cs
- TabletDeviceInfo.cs
- MetadataPropertyAttribute.cs
- RubberbandSelector.cs
- HeaderCollection.cs
- MessageSecurityTokenVersion.cs
- DesigntimeLicenseContext.cs
- WindowsListBox.cs
- oledbmetadatacolumnnames.cs
- GACMembershipCondition.cs
- TextComposition.cs
- TypeConverters.cs
- IChannel.cs
- DesignerLabelAdapter.cs
- SplineKeyFrames.cs
- HtmlInputButton.cs
- LinqDataSourceStatusEventArgs.cs
- TypeInfo.cs
- WorkflowRuntimeServiceElement.cs
- Variant.cs
- PeerResolverSettings.cs
- Vector3DCollectionValueSerializer.cs
- EnumBuilder.cs
- CodeDefaultValueExpression.cs
- HttpTransportSecurity.cs
- TabControl.cs
- TemplateDefinition.cs
- WebPartVerbsEventArgs.cs
- TypefaceMetricsCache.cs
- SerTrace.cs
- AnnotationStore.cs
- MessagePartDescription.cs