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
- WindowsClaimSet.cs
- TextPointer.cs
- UITypeEditor.cs
- BamlBinaryReader.cs
- AppDomainAttributes.cs
- StatusBarItemAutomationPeer.cs
- DataObjectMethodAttribute.cs
- ParallelTimeline.cs
- EventlogProvider.cs
- Span.cs
- Row.cs
- FaultException.cs
- InfoCardHelper.cs
- cryptoapiTransform.cs
- ItemCollection.cs
- SourceFilter.cs
- JulianCalendar.cs
- DbConnectionOptions.cs
- MetaType.cs
- SqlNamer.cs
- PointLight.cs
- LinkDescriptor.cs
- NameValuePair.cs
- SelectedDatesCollection.cs
- RightNameExpirationInfoPair.cs
- ContentPropertyAttribute.cs
- SwitchAttribute.cs
- ServiceEndpointCollection.cs
- VariableAction.cs
- ThreadInterruptedException.cs
- HwndSourceParameters.cs
- DoubleAnimationUsingPath.cs
- CharacterBufferReference.cs
- RotateTransform.cs
- WebPartTransformerAttribute.cs
- DiscoveryClientReferences.cs
- ClientSettingsSection.cs
- UnmanagedMarshal.cs
- future.cs
- PiiTraceSource.cs
- Queue.cs
- ScriptingProfileServiceSection.cs
- EmbeddedMailObjectsCollection.cs
- StateRuntime.cs
- PostBackTrigger.cs
- RunInstallerAttribute.cs
- SqlTrackingService.cs
- EventHandlerList.cs
- ConfigXmlComment.cs
- PlainXmlWriter.cs
- ControlBuilderAttribute.cs
- TypefaceMetricsCache.cs
- DesignerEventService.cs
- AsyncPostBackTrigger.cs
- Repeater.cs
- SoundPlayer.cs
- _SslSessionsCache.cs
- ConfigsHelper.cs
- UseLicense.cs
- SqlCharStream.cs
- DataGridViewRowsRemovedEventArgs.cs
- StyleCollection.cs
- ToolStripDropDownMenu.cs
- CacheAxisQuery.cs
- EditingMode.cs
- ProcessProtocolHandler.cs
- ListBoxItem.cs
- SerializationEventsCache.cs
- TailPinnedEventArgs.cs
- FlowDocumentScrollViewer.cs
- ColorBuilder.cs
- XmlReturnReader.cs
- ListBoxChrome.cs
- hwndwrapper.cs
- DataGridViewCellConverter.cs
- Blend.cs
- TokenBasedSetEnumerator.cs
- DbParameterCollectionHelper.cs
- CompensateDesigner.cs
- ParameterModifier.cs
- UserControlFileEditor.cs
- VisualSerializer.cs
- PrintDocument.cs
- StructuredTypeInfo.cs
- StorageComplexTypeMapping.cs
- BrowserCapabilitiesCompiler.cs
- PermissionSet.cs
- GridViewDeletedEventArgs.cs
- HtmlHistory.cs
- ButtonPopupAdapter.cs
- UserPreferenceChangedEventArgs.cs
- Cursor.cs
- BitmapEffectGeneralTransform.cs
- GeometryModel3D.cs
- RadioButton.cs
- StorageAssociationTypeMapping.cs
- DefinitionUpdate.cs
- MSAANativeProvider.cs
- PagerSettings.cs
- DataObjectCopyingEventArgs.cs