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
- ButtonBase.cs
- XmlLinkedNode.cs
- TablePattern.cs
- CLSCompliantAttribute.cs
- BCLDebug.cs
- WeakReferenceKey.cs
- DataGridCellClipboardEventArgs.cs
- VariableQuery.cs
- ValidateNames.cs
- CookieHandler.cs
- EndpointInfo.cs
- SecurityTokenAuthenticator.cs
- ListViewGroup.cs
- StrongTypingException.cs
- ProxyHwnd.cs
- SqlProcedureAttribute.cs
- BasicHttpBinding.cs
- UmAlQuraCalendar.cs
- PasswordDeriveBytes.cs
- ModifierKeysConverter.cs
- StandardCommands.cs
- GridItemProviderWrapper.cs
- JsonDeserializer.cs
- EntityContainer.cs
- ConnectionStringsSection.cs
- _FtpDataStream.cs
- ContentTextAutomationPeer.cs
- ComponentManagerBroker.cs
- CookieHandler.cs
- Transform.cs
- BitConverter.cs
- NetworkInformationException.cs
- ViewCellRelation.cs
- indexingfiltermarshaler.cs
- Queue.cs
- counter.cs
- DataGridRowsPresenter.cs
- FormsAuthenticationUser.cs
- ScriptBehaviorDescriptor.cs
- AQNBuilder.cs
- FileIOPermission.cs
- SqlReferenceCollection.cs
- BitmapEffectDrawingContextWalker.cs
- WindowsScrollBarBits.cs
- TypeElement.cs
- Error.cs
- HtmlLink.cs
- DotExpr.cs
- FileEnumerator.cs
- COMException.cs
- InternalConfigEventArgs.cs
- BamlRecordReader.cs
- FormViewCommandEventArgs.cs
- SafeHGlobalHandleCritical.cs
- Evidence.cs
- InvokerUtil.cs
- DSASignatureFormatter.cs
- ResourceReferenceKeyNotFoundException.cs
- SchemaInfo.cs
- ResXResourceReader.cs
- OleDbException.cs
- EventBuilder.cs
- NavigationWindowAutomationPeer.cs
- ProvideValueServiceProvider.cs
- WorkflowLayouts.cs
- FormattedTextSymbols.cs
- WinInetCache.cs
- ResourcePool.cs
- Package.cs
- AppendHelper.cs
- PermissionToken.cs
- Native.cs
- AttachmentService.cs
- ToggleButtonAutomationPeer.cs
- FixUpCollection.cs
- LinkedResourceCollection.cs
- CollectionViewProxy.cs
- AncestorChangedEventArgs.cs
- Rule.cs
- DataGridLengthConverter.cs
- HostUtils.cs
- SubstitutionList.cs
- SQLDouble.cs
- QilPatternVisitor.cs
- OrderingInfo.cs
- PageCodeDomTreeGenerator.cs
- OleDbParameterCollection.cs
- InputReferenceExpression.cs
- XmlReflectionMember.cs
- VisualProxy.cs
- LineUtil.cs
- QueryExecutionOption.cs
- TraceContextRecord.cs
- WindowsScroll.cs
- DecimalFormatter.cs
- ContextMenuStrip.cs
- SiteMap.cs
- XmlDocument.cs
- CodeLabeledStatement.cs
- XmlSchemaExternal.cs