Files
mono/mcs/class/System.ServiceModel/System.ServiceModel.PeerResolvers/RefreshResponseInfo.cs
T
Jb Evain bdd0809c70 move to from olive to mcs
svn path=/trunk/mcs/; revision=111187
2008-08-20 21:24:37 +00:00

73 lines
1.5 KiB
C#

//
// RefreshResponseInfo.cs
//
// Author:
// Marcos Cobena ([email protected])
//
// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
//
using System.Runtime.Serialization;
namespace System.ServiceModel.PeerResolvers
{
[MessageContract (IsWrapped = false)]
public class RefreshResponseInfo
{
// FIXME: I'm not 100% sure its Name is "Update", I need to take some more long period traces.
[MessageBodyMember (Name = "Update", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
RefreshResponseInfoDC body;
public RefreshResponseInfo ()
{
body = new RefreshResponseInfoDC ();
}
public RefreshResponseInfo (TimeSpan registrationLifetime, RefreshResult result)
: this ()
{
body.RegistrationLifetime = registrationLifetime;
body.Result = result;
}
public TimeSpan RegistrationLifetime {
get { return body.RegistrationLifetime; }
set { body.RegistrationLifetime = value; }
}
public RefreshResult Result {
get { return body.Result; }
set { body.Result = value; }
}
[MonoTODO]
public bool HasBody ()
{
throw new NotImplementedException ();
}
}
[DataContract]
internal class RefreshResponseInfoDC
{
TimeSpan registration_lifetime;
RefreshResult result;
public RefreshResponseInfoDC ()
{
}
[DataMember]
public TimeSpan RegistrationLifetime {
get { return registration_lifetime; }
set { registration_lifetime = value; }
}
[DataMember]
public RefreshResult Result {
get { return result; }
set { result = value; }
}
}
}