5 // Marcos Cobena (marcoscobena@gmail.com)
7 // Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
10 using System
.Runtime
.Serialization
;
12 namespace System
.ServiceModel
.PeerResolvers
14 [MessageContract (IsWrapped
= false)]
15 public class UnregisterInfo
17 [MessageBodyMember (Name
= "Unregister", Namespace
= "http://schemas.microsoft.com/net/2006/05/peer")]
18 UnregisterInfoDC Body
{
21 body
= new UnregisterInfoDC ();
25 UnregisterInfoDC body
;
27 public UnregisterInfo ()
31 public UnregisterInfo (string meshId
, Guid registration_id
)
34 Body
.RegistrationId
= registration_id
;
37 public string MeshId
{
38 get { return Body.MeshId; }
41 public Guid RegistrationId
{
42 get { return Body.RegistrationId; }
45 public bool HasBody ()
47 return true; // FIXME: I have no idea when it returns false
51 [DataContract (Name
= "Unregister", Namespace
= "http://schemas.microsoft.com/net/2006/05/peer")]
52 internal class UnregisterInfoDC
57 public UnregisterInfoDC ()
62 public string MeshId
{
63 get { return mesh_id; }
64 set { mesh_id = value; }
68 public Guid RegistrationId
{
69 get { return registration_id; }
70 set { registration_id = value; }