fix(#6): Dispose null 예외 로깅 추가 (리소스 정리 실패 모니터링)
This commit is contained in:
@@ -283,7 +283,13 @@ public class ExperionOpcServerService : IExperionOpcServerService, IHostedServic
|
|||||||
_server?.Stop();
|
_server?.Stop();
|
||||||
#pragma warning restore CS0618 // 'Stop()' is obsolete
|
#pragma warning restore CS0618 // 'Stop()' is obsolete
|
||||||
}
|
}
|
||||||
catch { /* ignore */ }
|
catch (Exception ex)
|
||||||
_server = null;
|
{
|
||||||
|
_logger.LogWarning(ex, "[OpcServer] Dispose 중 예외 발생 - 리소스 모니터링 필요");
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
_server = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user