我有一个托管在Windows窗体中的WCF服务。
如何从我的服务方法中访问窗体的控件?
例如,我有:
public interface IService {
[ServiceContract]
string PrintMessage(string message);
}
public class Service: IService
{
public string PrintMessage(string message)
{
//How do I access the forms controls from here?
FormTextBox.Text = message;
}
}