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
- Soap12ServerProtocol.cs
- CheckBox.cs
- UiaCoreApi.cs
- ChtmlSelectionListAdapter.cs
- DateTimeHelper.cs
- TextFormatterContext.cs
- WeakEventTable.cs
- XPathSelectionIterator.cs
- MemoryFailPoint.cs
- Documentation.cs
- CustomExpressionEventArgs.cs
- RootNamespaceAttribute.cs
- TextSelectionHighlightLayer.cs
- ClientTargetSection.cs
- ReachNamespaceInfo.cs
- WebScriptMetadataMessageEncoderFactory.cs
- Assert.cs
- NegotiationTokenAuthenticatorState.cs
- EntityCollection.cs
- HandleTable.cs
- ListItemCollection.cs
- TextEditorLists.cs
- Propagator.JoinPropagator.cs
- DirtyTextRange.cs
- IncrementalHitTester.cs
- TreeWalkHelper.cs
- EntityWithKeyStrategy.cs
- PasswordTextNavigator.cs
- WhitespaceRuleLookup.cs
- DynamicResourceExtension.cs
- TableHeaderCell.cs
- PositiveTimeSpanValidatorAttribute.cs
- LoginCancelEventArgs.cs
- DBCommandBuilder.cs
- BrowserInteropHelper.cs
- UpdateCompiler.cs
- HttpListenerResponse.cs
- ProofTokenCryptoHandle.cs
- RequiredAttributeAttribute.cs
- TypeSemantics.cs
- SimpleBitVector32.cs
- PeerMessageDispatcher.cs
- MutableAssemblyCacheEntry.cs
- ResolveNameEventArgs.cs
- ItemsPanelTemplate.cs
- NetworkInformationException.cs
- Module.cs
- FixedPageStructure.cs
- BaseParser.cs
- ScriptBehaviorDescriptor.cs
- TranslateTransform3D.cs
- COM2EnumConverter.cs
- TableLayoutCellPaintEventArgs.cs
- ContentPresenter.cs
- BinaryCommonClasses.cs
- xml.cs
- DataControlField.cs
- BamlResourceSerializer.cs
- EntityContainerEmitter.cs
- CodeAccessPermission.cs
- QueryTaskGroupState.cs
- PrintControllerWithStatusDialog.cs
- HideDisabledControlAdapter.cs
- EventHandlersStore.cs
- EntryPointNotFoundException.cs
- HtmlImage.cs
- DataGridItemAutomationPeer.cs
- CustomError.cs
- PipelineDeploymentState.cs
- HTMLTagNameToTypeMapper.cs
- TimeSpanConverter.cs
- BulletChrome.cs
- Vector3D.cs
- FlowDecisionDesigner.xaml.cs
- UIElement3DAutomationPeer.cs
- XmlSchemaDocumentation.cs
- NativeMethods.cs
- ClickablePoint.cs
- TextAutomationPeer.cs
- TableColumn.cs
- XmlAttribute.cs
- OdbcUtils.cs
- SrgsRuleRef.cs
- PixelShader.cs
- RawStylusInput.cs
- HtmlTernaryTree.cs
- XmlSchemas.cs
- UriSection.cs
- UnsafeNativeMethods.cs
- ImageAttributes.cs
- BCLDebug.cs
- MetadataArtifactLoaderFile.cs
- ButtonBaseAutomationPeer.cs
- DataGridItemEventArgs.cs
- DataGridViewIntLinkedList.cs
- Filter.cs
- Storyboard.cs
- PropertyGridEditorPart.cs
- DynamicDataRouteHandler.cs
- arclist.cs