C# を使用して xml-rpc クライアント アプリケーションを作成しようとしています。ただし、ホストアドレスを変数にする必要があります。私はC#にかなり慣れていないため、属性に変数を追加しようとすると問題が発生します。
using CookComputing.XmlRpc;
public struct SumAndDiffValue
{
public int sum;
public int difference;
}
[XmlRpcUrl("http://www.cookcomputing.com/sumAndDiff.rem")]
public interface ISumAndDiff : IXmlRpcProxy
{
[XmlRpcMethod]
SumAndDiffValue SumAndDifference(int x, int y);
}
今、変数を追加したい
[XmlRpcUrl("hostAddress")]
役立つ例/参考文献はありますか?