//call client function the same like call the server function public void HandleTest(string thriftType) { if (!string.IsNullOrEmpty(thriftType)) { ThriftBase thriftClient = ThriftFactory.GetThrift(thriftType); thriftClient.Test(UpdateLabel); } }
//call client function the same like call the server function public void HandleTest(object sender) { if (sender != null && sender is Button) { Button btn = (Button)sender; string btnText = btn.Text.Trim(); ThriftBase thriftClient = ThriftFactory.GetThrift(btnText); thriftClient.Test(UpdateLabel); } }