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
;
20 public UnregisterInfo ()
22 body
= new UnregisterInfoDC ();
25 public UnregisterInfo (string meshId
, Guid registration_id
)
29 body
.RegistrationId
= registration_id
;
32 public string MeshId
{
33 get { return body.MeshId; }
36 public Guid RegistrationId
{
37 get { return body.RegistrationId; }
40 public bool HasBody ()
42 return true; // FIXME: I have no idea when it returns false
46 [DataContract (Name
= "Unregister", Namespace
= "http://schemas.microsoft.com/net/2006/05/peer")]
47 internal class UnregisterInfoDC
52 public UnregisterInfoDC ()
57 public string MeshId
{
58 get { return mesh_id; }
59 set { mesh_id = value; }
63 public Guid RegistrationId
{
64 get { return registration_id; }
65 set { registration_id = value; }