0
嗨
虽然这是一件简单的事情,我不知道该怎么做。
我想签署的dll发生在服务器端的事件。
客户端有一个这个DLL的实例,他们必须从服务器接收通知。
上的服务我定义(C#):
从WCF服务提高事件到消费DLL
public delegate ActionResult ActionComplitedHandler(object sender,ActionComplitedEventArgs e);
。
public event ActionComplitedHandler ActionComplited;
public void OnActionComplited(ActionResult actionResult)
{
if (ActionComplited != null)
{
ActionComplitedEventArgs args = new ActionComplitedEventArgs();
args.ActionResult = actionResult;
ActionComplited(this, args);
}
}
但是,当试图签署DLL的事件我不能看到它。
mySeriveInstance.ActionComplited+=... //(I don't get the eventHandler after the dot)
我不喜欢使用WCF回调。
WCF服务实例是Single。
我做错了什么,有没有其他方法可以做到这一点?
谢谢。
你不能使用自动完成或不能接收事件? – 2010-12-06 07:45:32