private bool IsValidConnState([CallerMemberName] string callingMethod = null) { if (_conn == null || _hub == null) { throw Fault.CallFirst(nameof(Connect), callingMethod); } if (_conn.State != ConnectionState.Connected) { _log.Add($"Method [{callingMethod}] failed because current connection is [{_conn.State}]."); return(false); } return(true); }