, , RIA .
service,
DomainService1, DomainContext1. Domainservice ABC, , .
:
[EnableClientAccess]
public class TestService : DomainService
{
public string Hello()
{
return "Hello world!";
}
}
:
, system.your web project.web.servicesmodel.client
,
TestContext test=new TestContext();
test.Hello(getData,null,false);`
// - , , - - ,
public void getData(InvokeOpration<string> value)
{
MessageBox.Show(""+value.Value);
}
Hello World MessageBox.