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 ();
26 UnregisterInfoDC body;
28 public UnregisterInfo ()
32 public UnregisterInfo (string meshId, Guid registrationId)
35 Body.RegistrationId = registrationId;
38 public string MeshId {
39 get { return Body.MeshId; }
42 public Guid RegistrationId {
43 get { return Body.RegistrationId; }
46 public bool HasBody ()
48 return true; // FIXME: I have no idea when it returns false
52 [DataContract (Name = "Unregister", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
53 internal class UnregisterInfoDC
58 public UnregisterInfoDC ()
63 public string MeshId {
64 get { return mesh_id; }
65 set { mesh_id = value; }
69 public Guid RegistrationId {
70 get { return registration_id; }
71 set { registration_id = value; }