0
public int SendServiceCallFromAnotherClass()
{
client.SendCompleted += new EventHandler<SendCompletedEventArgs>(client_SendCompleted);
client.SendAsync(clientSettings);
//i have to return some int here from my service
}
void client_SendCompleted(object sender, SendCompletedEventArgs e)
{
//so here i have to return int variable from my SendServiceCallFromAnotherClass method
}
我認爲你是對的,謝謝。 – Pratik 2010-10-20 13:05:10