public override void OnError(Exception error)
{
_closed = true;
Debug.WriteLine("ChannelFactory OnError " + error.Message);
Debug.WriteLine(error.StackTrace);
if (_established) {
try {
_bindedLocalSocket.Close();
}
catch (Exception) {
Debug.WriteLine("Binded Socket Close Error");
}
}
base.OnError(error);
}