diff --git a/Shared.EventStore/Aggregate/DomainEventFactory.cs b/Shared.EventStore/Aggregate/DomainEventFactory.cs index f07cd79d..229b2582 100644 --- a/Shared.EventStore/Aggregate/DomainEventFactory.cs +++ b/Shared.EventStore/Aggregate/DomainEventFactory.cs @@ -54,8 +54,8 @@ public DomainEvent CreateDomainEvent(Guid aggregateId, ResolvedEvent @event) try{ eventType = TypeMap.GetType(@event.Event.EventType); } - catch(Exception ex){ - // Nothing here + catch(Exception) + { } if (eventType == null) diff --git a/Shared.EventStore/Aggregate/TypeMapConvertor.cs b/Shared.EventStore/Aggregate/TypeMapConvertor.cs index 9deef1e6..839ae4fc 100644 --- a/Shared.EventStore/Aggregate/TypeMapConvertor.cs +++ b/Shared.EventStore/Aggregate/TypeMapConvertor.cs @@ -39,7 +39,7 @@ public static IDomainEvent Convertor(Guid aggregateId, ResolvedEvent @event) { eventType = TypeMap.GetType(@event.Event.EventType); } - catch (Exception ex) + catch (Exception) { // Nothing here } diff --git a/Shared.IntegrationTesting/BaseDockerHelper.cs b/Shared.IntegrationTesting/BaseDockerHelper.cs index cb9d59bc..80aad80c 100644 --- a/Shared.IntegrationTesting/BaseDockerHelper.cs +++ b/Shared.IntegrationTesting/BaseDockerHelper.cs @@ -671,7 +671,7 @@ protected void CheckSqlConnection(IContainerService databaseServerContainer){ connection.Close(); this.Trace("SQL Server Container Running"); } - catch(SqlException ex){ + catch(SqlException){ if (connection.State == ConnectionState.Open){ connection.Close(); } diff --git a/Shared/Extensions/StringExtensions.cs b/Shared/Extensions/StringExtensions.cs index 0d1da42b..b1783198 100644 --- a/Shared/Extensions/StringExtensions.cs +++ b/Shared/Extensions/StringExtensions.cs @@ -26,12 +26,12 @@ public static Boolean TryParseJson(this String obj, out T result) result = JsonConvert.DeserializeObject(obj, settings); return true; } - catch (JsonReaderException jrex) + catch (JsonReaderException) { result = default(T); return false; } - catch (JsonSerializationException jsex) + catch (JsonSerializationException) { result = default(T); return false; diff --git a/Shared/General/ConfigurationReader.cs b/Shared/General/ConfigurationReader.cs index 420c73bc..3042c18f 100644 --- a/Shared/General/ConfigurationReader.cs +++ b/Shared/General/ConfigurationReader.cs @@ -88,7 +88,7 @@ public static T GetValueOrDefault(String sectionName, String keyName, T defau return (T)Convert.ChangeType(value, typeof(T)); } - catch (KeyNotFoundException kex) + catch (KeyNotFoundException) { return defaultValue; }