Silverlight/WCF Ria Service
Silverlight 에서 Ria Service 를 통해 Int 값이나 String 값을 가져오기
홍상길
2010. 9. 4. 21:46
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;
}