.ICallbackService]无法访问已处置的对象。对象名称:“ System.ServiceModel.Channels.ServiceChannel”。
System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
我多次遇到此问题。客户关闭,如何在运行位置激活它?
代码:
foreach (KeyValuePair<string, ICallbackService> callbackItem in MainService.CallbackClients)
{
if (callbackItem.Key.Contains(
Utility.Instance.ToString(
ConfigurationManager.AppSettings["ClientID"])))
callbackItem.Value
}