31 |
{ |
{ |
32 |
public class XmlRpcMethod : XmlRpcObject |
public class XmlRpcMethod : XmlRpcObject |
33 |
{ |
{ |
34 |
|
private string assembly; |
35 |
|
|
36 |
public XmlRpcMethod() |
public XmlRpcMethod() |
37 |
{ |
{ |
38 |
} |
} |
42 |
methodName = name; |
methodName = name; |
43 |
} |
} |
44 |
|
|
45 |
public String Name |
public string Name |
46 |
{ |
{ |
47 |
get { |
get { |
48 |
return this.methodName; |
return this.methodName; |
49 |
} |
} |
50 |
} |
} |
51 |
|
|
52 |
|
public String Assembly |
53 |
|
{ |
54 |
|
get { |
55 |
|
return assembly; |
56 |
|
} |
57 |
|
set { |
58 |
|
assembly = value; |
59 |
|
} |
60 |
|
} |
61 |
|
|
62 |
public object Invoke() |
public XmlRpcResponse Invoke() |
63 |
{ |
{ |
64 |
// Ensure that we support method aliasing. Ie the method name |
// Ensure that we support method aliasing. Ie the method name |
65 |
// comes from goldwater and not the xmlrpc request (support for |
// comes from goldwater and not the xmlrpc request (support for |
66 |
// method aliasing) |
// method aliasing) |
67 |
int i = 5; |
|
68 |
return i; |
// for now we just return that simple integer |
69 |
|
XmlRpcResponse response = new XmlRpcResponse(); |
70 |
|
int i = 1234567890; |
71 |
|
response.Add( i ); |
72 |
|
return response; |
73 |
} |
} |
74 |
|
|
75 |
public override string ToString() |
public override string ToString() |