In System.ServiceModel.Description:
[mono-project.git] / mcs / class / System.ServiceModel / System.ServiceModel.PeerResolvers / UnregisterInfo.cs
blobfe925c7ac05762d8f68e06c69cef1deea90162ae
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;
20 public UnregisterInfo ()
22 body = new UnregisterInfoDC ();
25 public UnregisterInfo (string meshId, Guid registration_id)
26 : this ()
28 body.MeshId = meshId;
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
49 string mesh_id;
50 Guid registration_id;
52 public UnregisterInfoDC ()
56 [DataMember]
57 public string MeshId {
58 get { return mesh_id; }
59 set { mesh_id = value; }
62 [DataMember]
63 public Guid RegistrationId {
64 get { return registration_id; }
65 set { registration_id = value; }