2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.ServiceModel / System.ServiceModel.PeerResolvers / UnregisterInfo.cs
blobed82ee27195d510d1030f5354d07ba4060853527
1 //
2 // UnregisterInfo.cs
3 //
4 // Author:
5 // Marcos Cobena (marcoscobena@gmail.com)
6 //
7 // Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
8 //
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 {
19 get {
20 if (body == null)
21 body = new UnregisterInfoDC ();
22 return body;
25 UnregisterInfoDC body;
27 public UnregisterInfo ()
31 public UnregisterInfo (string meshId, Guid registration_id)
33 Body.MeshId = meshId;
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
54 string mesh_id;
55 Guid registration_id;
57 public UnregisterInfoDC ()
61 [DataMember]
62 public string MeshId {
63 get { return mesh_id; }
64 set { mesh_id = value; }
67 [DataMember]
68 public Guid RegistrationId {
69 get { return registration_id; }
70 set { registration_id = value; }