22 lines
435 B
C#
22 lines
435 B
C#
using System;
|
|
using appsrv.attributes;
|
|
namespace appsrv.test
|
|
{
|
|
|
|
public class StaticTest
|
|
{
|
|
|
|
[WebCallable]
|
|
public static int Add(int a,int b){
|
|
Console.WriteLine("StaticTest.Add({0},{1})", a, b);
|
|
return a + b;
|
|
}
|
|
|
|
[WebCallable]
|
|
public static void Debug()
|
|
{
|
|
Console.WriteLine("StaticTest.Debug() has been called");
|
|
}
|
|
}
|
|
}
|