C# BizTalk自定义适配器事件日志垃圾邮件(禁用时)
我为BizTalk创建了一个WebDAV发送/接收适配器,一切正常,但当我禁用接收位置时,事件日志会被3个错误淹没C# BizTalk自定义适配器事件日志垃圾邮件(禁用时),c#,adapter,biztalk,webdav,C#,Adapter,Biztalk,Webdav,我为BizTalk创建了一个WebDAV发送/接收适配器,一切正常,但当我禁用接收位置时,事件日志会被3个错误淹没 适配器“WebDAV”引发了一条错误消息。详细信息“字典中不存在给定的密钥。” URL为“WebDAV://URI//kstore/C20709T11/tmp/Temp”的接收位置“RL.WebDAV.HBS”正在关闭。详细信息:“消息引擎在通知适配器其配置时失败。” 消息引擎无法从适配器“WebDAV”中删除URL为“WebDAV://URI//kstore/C20709T11/
public override void Dispose()
{
EventLog.WriteEntry("BizTalk Server", "[WebDAV Adapter] Stopped Adapter UniqueCode: 635265412", EventLogEntryType.Information);
base.Dispose();
this.isStopped = true;
this.timer.Dispose();
this.transportProxy = null;
this.connection.IsStopped = true;
this.connection.AbortSession();
this.connection.CloseSession();
if (Marshal.IsComObject(connection))
{
while (0 <Marshal.ReleaseComObject(connection))
{
Marshal.ReleaseComObject(connection);
}
}
GC.SuppressFinalize(connection);
}
public override void Dispose()
{
EventLog.WriteEntry(“BizTalk Server,“[WebDAV适配器]停止的适配器唯一代码:635265412”,EventLogEntryType.Information);
base.Dispose();
this.isStopped=true;
this.timer.Dispose();
this.transportProxy=null;
this.connection.IsStopped=true;
this.connection.AbortSession();
this.connection.CloseSession();
if(封送IsComObject(连接))
{
虽然(0),但您是否已通过dispose代码进行调试,以确保这些调用都不会引发任何异常?FWIW,我相信我已经在另一个自定义适配器(schedule task)中看到了这一点,并且从未确定原因。