using dasBlog.Services.Contracts.WeblogUpdates;
using System.ServiceModel;
using Microsoft.ServiceModel.Samples.XmlRpc;
namespace newtelligence.DasBlog.Runtime.Proxies{
/// <summary>
/// This is the client proxy for notifying weblogs.com on update
/// </summary>
public class WeblogUpdatesClientProxy : ClientBase<IWeblogUpdates>, IWeblogUpdates
{
public WeblogUpdatesClientProxy(EndpointAddress endpointUrl)
:base( new XmlRpcHttpBinding(), endpointUrl)
{
this.Endpoint.Behaviors.Add(new XmlRpcEndpointBehavior());
}
public WeblogUpdatesReply Ping( string weblogName, string weblogUrl )
{
return base.Channel.Ping(weblogName, weblogUrl);
}
public WeblogUpdatesReply ExtendedPing(string weblogName, string weblogUrl, string checkUrl, string rssUrl)
{
return base.Channel.ExtendedPing(weblogName, weblogUrl, checkUrl, rssUrl);
}
}
}
|