Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / PeerResolvers / RegisterInfo.cs / 1 / RegisterInfo.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 RegisterInfo
{
[DataContract(Name = "Register", Namespace = PeerStrings.Namespace)]
class RegisterInfoDC
{
[DataMember(Name = "ClientId")]
public Guid ClientId;
[DataMember(Name = "MeshId")]
public string MeshId;
[DataMember(Name = "NodeAddress")]
public PeerNodeAddress NodeAddress;
// public TimeSpan RegistrationLifeTime;
public RegisterInfoDC(){}
public RegisterInfoDC(Guid client, string meshId, PeerNodeAddress address)
{
this.ClientId = client;
this.MeshId = meshId;
this.NodeAddress = address;
}
}
public RegisterInfo(Guid client, string meshId, PeerNodeAddress address)
{
body = new RegisterInfoDC(client, meshId, address);
}
public RegisterInfo(){body = new RegisterInfoDC();}
[MessageBodyMember(Name = "Register", Namespace = PeerStrings.Namespace)]
RegisterInfoDC body;
public Guid ClientId
{
get { return this.body.ClientId; }
}
public string MeshId
{
get { return this.body.MeshId; }
}
public PeerNodeAddress NodeAddress
{
get { return this.body.NodeAddress; }
}
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
- CookieParameter.cs
- FileDialogCustomPlacesCollection.cs
- TextLineResult.cs
- ExecutedRoutedEventArgs.cs
- XmlWrappingReader.cs
- Marshal.cs
- OutputScopeManager.cs
- XmlSchemaGroup.cs
- DataGridViewCell.cs
- WebPartRestoreVerb.cs
- ChameleonKey.cs
- ISAPIApplicationHost.cs
- IQueryable.cs
- SystemIPv6InterfaceProperties.cs
- XsltLoader.cs
- ContentValidator.cs
- MouseCaptureWithinProperty.cs
- RootBrowserWindowAutomationPeer.cs
- EntityDataSourceWizardForm.cs
- XmlTextWriter.cs
- StringSource.cs
- ToolTip.cs
- KnownColorTable.cs
- SectionUpdates.cs
- HGlobalSafeHandle.cs
- TextModifierScope.cs
- Context.cs
- ChannelSinkStacks.cs
- AspNetRouteServiceHttpHandler.cs
- BackgroundFormatInfo.cs
- HtmlElementEventArgs.cs
- SemaphoreFullException.cs
- MenuItemBindingCollection.cs
- HttpRuntime.cs
- BreakRecordTable.cs
- InputProcessorProfilesLoader.cs
- ParentQuery.cs
- ProcessManager.cs
- HtmlString.cs
- SettingsBindableAttribute.cs
- RemoteHelper.cs
- AuthenticationModuleElement.cs
- SafePointer.cs
- EmbossBitmapEffect.cs
- DbgUtil.cs
- CodeGeneratorOptions.cs
- DigestTraceRecordHelper.cs
- IItemContainerGenerator.cs
- ComplexTypeEmitter.cs
- LeftCellWrapper.cs
- JournalEntryStack.cs
- ContractBase.cs
- RoleManagerSection.cs
- Parser.cs
- ActivityTypeDesigner.xaml.cs
- UniqueEventHelper.cs
- SlipBehavior.cs
- _BaseOverlappedAsyncResult.cs
- TextElementAutomationPeer.cs
- DataObjectEventArgs.cs
- ListBoxItemWrapperAutomationPeer.cs
- ConditionCollection.cs
- GrammarBuilderBase.cs
- CodeDomSerializerException.cs
- BuildProvidersCompiler.cs
- Oid.cs
- ComEventsHelper.cs
- ByteFacetDescriptionElement.cs
- _MultipleConnectAsync.cs
- ViewGenerator.cs
- InternalsVisibleToAttribute.cs
- AudioBase.cs
- SurrogateEncoder.cs
- StrongNamePublicKeyBlob.cs
- QueueProcessor.cs
- DrawingCollection.cs
- LookupNode.cs
- _ProxyRegBlob.cs
- PtsCache.cs
- ZoneButton.cs
- BuildProviderAppliesToAttribute.cs
- OutgoingWebRequestContext.cs
- WebBrowserContainer.cs
- ProcessManager.cs
- SqlBooleanMismatchVisitor.cs
- TabletDevice.cs
- BindingEntityInfo.cs
- TextServicesCompartmentEventSink.cs
- IgnoreSection.cs
- SendKeys.cs
- Propagator.cs
- SkewTransform.cs
- SHA256Managed.cs
- SystemFonts.cs
- Constraint.cs
- TextFindEngine.cs
- MethodExecutor.cs
- Operand.cs
- DropTarget.cs
- EmptyEnumerator.cs