Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / PeerResolvers / RefreshResponseInfo.cs / 1 / RefreshResponseInfo.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 RefreshResponseInfo { [DataContract(Name = "RefreshResponseInfo", Namespace = PeerStrings.Namespace)] class RefreshResponseInfoDC { [DataMember(Name = "RegistrationLifetime")] public TimeSpan RegistrationLifetime; [DataMember(Name = "Result")] public RefreshResult Result; public RefreshResponseInfoDC(TimeSpan registrationLifetime, RefreshResult result) { this.RegistrationLifetime = registrationLifetime; this.Result = result; } } public RefreshResponseInfo():this(TimeSpan.Zero, RefreshResult.RegistrationNotFound){} public RefreshResponseInfo(TimeSpan registrationLifetime, RefreshResult result) { this.body = new RefreshResponseInfoDC(registrationLifetime, result); } public TimeSpan RegistrationLifetime { get { return 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; } } public RefreshResult Result { get { return body.Result;} set { this.body.Result = value; } } [MessageBodyMember(Name = "RefreshResponse", Namespace = PeerStrings.Namespace)] RefreshResponseInfoDC 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
- IsolatedStorageFile.cs
- HtmlWindowCollection.cs
- TraceContextRecord.cs
- MarkerProperties.cs
- DataServiceProcessingPipeline.cs
- InputLanguageManager.cs
- StaticSiteMapProvider.cs
- TemplateBaseAction.cs
- KnownIds.cs
- WorkItem.cs
- UnsafeNativeMethodsPenimc.cs
- LocalValueEnumerator.cs
- DesignSurfaceCollection.cs
- MultiSelectRootGridEntry.cs
- FixedPageStructure.cs
- ToolStripCollectionEditor.cs
- SystemTcpStatistics.cs
- ConnectionInterfaceCollection.cs
- CodeVariableDeclarationStatement.cs
- DynamicPropertyReader.cs
- EnumMember.cs
- ZipIOExtraFieldPaddingElement.cs
- BuildProviderCollection.cs
- SliderAutomationPeer.cs
- XmlILStorageConverter.cs
- _AutoWebProxyScriptWrapper.cs
- PriorityQueue.cs
- AutomationElement.cs
- ObjectResult.cs
- InputScopeConverter.cs
- SqlConnectionHelper.cs
- Utilities.cs
- QuaternionValueSerializer.cs
- SqlParameterizer.cs
- CollectionViewGroupRoot.cs
- PageBreakRecord.cs
- CfgArc.cs
- DocumentViewerBaseAutomationPeer.cs
- MouseWheelEventArgs.cs
- SerializationObjectManager.cs
- PerformanceCounterManager.cs
- OpenTypeLayout.cs
- pingexception.cs
- SizeFConverter.cs
- Contracts.cs
- InfoCardArgumentException.cs
- Types.cs
- DBDataPermissionAttribute.cs
- TextTreeInsertUndoUnit.cs
- WinFormsUtils.cs
- Encoding.cs
- ImageSourceConverter.cs
- DataBoundControlDesigner.cs
- MergePropertyDescriptor.cs
- CollectionChangedEventManager.cs
- ToolConsole.cs
- ConfigurationConverterBase.cs
- FunctionMappingTranslator.cs
- CultureTableRecord.cs
- ValueConversionAttribute.cs
- SortedDictionary.cs
- XsltLibrary.cs
- UntrustedRecipientException.cs
- DbSource.cs
- AsymmetricKeyExchangeFormatter.cs
- TextContainerHelper.cs
- Calendar.cs
- xamlnodes.cs
- SqlDataSourceConfigureSelectPanel.cs
- SessionEndedEventArgs.cs
- StreamInfo.cs
- BrowserInteropHelper.cs
- DesigntimeLicenseContextSerializer.cs
- ReferenceConverter.cs
- UITypeEditor.cs
- UnsafeNativeMethods.cs
- OptimalTextSource.cs
- PositiveTimeSpanValidator.cs
- FrameworkTextComposition.cs
- TypeForwardedToAttribute.cs
- DriveNotFoundException.cs
- GridViewPageEventArgs.cs
- ConfigurationConverterBase.cs
- ResourceReferenceKeyNotFoundException.cs
- InternalBase.cs
- WebPartManager.cs
- ResourceDictionary.cs
- XamlTemplateSerializer.cs
- VerificationException.cs
- DataTableNewRowEvent.cs
- _UncName.cs
- Int64KeyFrameCollection.cs
- Stylesheet.cs
- ResourceReferenceExpression.cs
- KeyGestureConverter.cs
- ParseNumbers.cs
- _LocalDataStoreMgr.cs
- AsyncResult.cs
- Bold.cs
- ResourceManager.cs