private void Count()
{
TestContext context = new TestContext ();
InvokeOperation<int> cnt = context.GetTest(UserID);
cnt.Completed += new EventHandler(cnt_Completed);
}
void cnt_Completed(object sender, EventArgs e)
{
InvokeOperation<int> op = (InvokeOperation<int>)sender;
{
TestContext context = new TestContext ();
InvokeOperation<int> cnt = context.GetTest(UserID);
cnt.Completed += new EventHandler(cnt_Completed);
}
void cnt_Completed(object sender, EventArgs e)
{
InvokeOperation<int> op = (InvokeOperation<int>)sender;
int value = op.Value;
}
'Silverlight > WCF Ria Service' 카테고리의 다른 글
| Domain Context 데이터 연속 바인딩 하기 (0) | 2010.08.03 |
|---|---|
| Silverlight + Ria Domainservice 연동 (0) | 2010.08.01 |
| SP with RIA (0) | 2010.08.01 |
| WCF RIA Services Guide (0) | 2010.07.28 |
| [MSDN] System.ServiceModel.DomainServices.Client (0) | 2010.07.28 |
| WCF Ria DomainService 를 이용한 데이터 바인딩 (0) | 2010.07.28 |