Skip to content

Commit e42ce0c

Browse files
committed
More cleanup
1 parent 4e5d2d2 commit e42ce0c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Source/Shared/Extensions/ExceptionlessConfigurationExtensions.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Exceptionless.Plugins.Default;
88
using Exceptionless.Logging;
99
using Exceptionless.Models;
10+
using Exceptionless.Models.Data;
1011
using Exceptionless.Storage;
1112

1213
namespace Exceptionless {
@@ -38,10 +39,7 @@ public static string GetQueueName(this ExceptionlessConfiguration config) {
3839
}
3940

4041
public static string GetInstallId(this ExceptionlessConfiguration config) {
41-
if (config == null)
42-
return null;
43-
44-
var persistedClientData = config.Resolver.Resolve<PersistedDictionary>();
42+
var persistedClientData = config?.Resolver.Resolve<PersistedDictionary>();
4543
if (persistedClientData == null)
4644
return null;
4745

@@ -82,7 +80,7 @@ public static void UseReferenceIds(this ExceptionlessConfiguration config) {
8280
/// <param name="assemblies">The assembly that contains the Exceptionless configuration attributes.</param>
8381
public static void ReadFromAttributes(this ExceptionlessConfiguration config, params Assembly[] assemblies) {
8482
if (config == null)
85-
throw new ArgumentNullException("config");
83+
throw new ArgumentNullException(nameof(config));
8684

8785
config.ReadFromAttributes(assemblies.ToList());
8886
}
@@ -95,7 +93,7 @@ public static void ReadFromAttributes(this ExceptionlessConfiguration config, pa
9593
/// <param name="assemblies">A list of assemblies that should be checked for the Exceptionless configuration attributes.</param>
9694
public static void ReadFromAttributes(this ExceptionlessConfiguration config, ICollection<Assembly> assemblies = null) {
9795
if (config == null)
98-
throw new ArgumentNullException("config");
96+
throw new ArgumentNullException(nameof(config));
9997

10098
if (assemblies == null)
10199
assemblies = new List<Assembly> { Assembly.GetCallingAssembly() };
@@ -116,7 +114,6 @@ public static void ReadFromAttributes(this ExceptionlessConfiguration config, IC
116114
if (!String.IsNullOrEmpty(attr.ServerUrl))
117115
config.ServerUrl = attr.ServerUrl;
118116

119-
config.EnableSSL = attr.EnableSSL;
120117
break;
121118
}
122119

0 commit comments

Comments
 (0)