private async void OnGetProtocolVersionReceived( GetProtocolVersionArgs getProtocolVersionArgs ) { try { using (_stateHelper.GetFuncWrapper()) { string fromDestination = getProtocolVersionArgs.Destination; if (_dropDestinations.Contains(fromDestination)) { return; } if (!SamHelper.IsDestinationStringValid(fromDestination)) { return; } await SendProtocolVersion( fromDestination, _settings.ProtocolVersion ).ConfigureAwait(false); } } catch (OperationCanceledException) { } catch (WrongDisposableObjectStateException) { } catch (Exception exc) { _log.Error( "OnGetProtocolVersionReceived" + " unexpected error '{0}'", exc.ToString() ); } }
private async void OnGetProtocolVersionReceived( GetProtocolVersionArgs getProtocolVersionArgs ) { try { using (_stateHelper.GetFuncWrapper()) { string fromDestination = getProtocolVersionArgs.Destination; if (_dropDestinations.Contains(fromDestination)) return; if (!SamHelper.IsDestinationStringValid(fromDestination)) return; await SendProtocolVersion( fromDestination, _settings.ProtocolVersion ).ConfigureAwait(false); } } catch (OperationCanceledException) { } catch (WrongDisposableObjectStateException) { } catch (Exception exc) { _log.Error( "OnGetProtocolVersionReceived" + " unexpected error '{0}'", exc.ToString() ); } }