7
7
using Exceptionless . Plugins . Default ;
8
8
using Exceptionless . Logging ;
9
9
using Exceptionless . Models ;
10
+ using Exceptionless . Models . Data ;
10
11
using Exceptionless . Storage ;
11
12
12
13
namespace Exceptionless {
@@ -38,10 +39,7 @@ public static string GetQueueName(this ExceptionlessConfiguration config) {
38
39
}
39
40
40
41
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 > ( ) ;
45
43
if ( persistedClientData == null )
46
44
return null ;
47
45
@@ -82,7 +80,7 @@ public static void UseReferenceIds(this ExceptionlessConfiguration config) {
82
80
/// <param name="assemblies">The assembly that contains the Exceptionless configuration attributes.</param>
83
81
public static void ReadFromAttributes ( this ExceptionlessConfiguration config , params Assembly [ ] assemblies ) {
84
82
if ( config == null )
85
- throw new ArgumentNullException ( " config" ) ;
83
+ throw new ArgumentNullException ( nameof ( config ) ) ;
86
84
87
85
config . ReadFromAttributes ( assemblies . ToList ( ) ) ;
88
86
}
@@ -95,7 +93,7 @@ public static void ReadFromAttributes(this ExceptionlessConfiguration config, pa
95
93
/// <param name="assemblies">A list of assemblies that should be checked for the Exceptionless configuration attributes.</param>
96
94
public static void ReadFromAttributes ( this ExceptionlessConfiguration config , ICollection < Assembly > assemblies = null ) {
97
95
if ( config == null )
98
- throw new ArgumentNullException ( " config" ) ;
96
+ throw new ArgumentNullException ( nameof ( config ) ) ;
99
97
100
98
if ( assemblies == null )
101
99
assemblies = new List < Assembly > { Assembly . GetCallingAssembly ( ) } ;
@@ -116,7 +114,6 @@ public static void ReadFromAttributes(this ExceptionlessConfiguration config, IC
116
114
if ( ! String . IsNullOrEmpty ( attr . ServerUrl ) )
117
115
config . ServerUrl = attr . ServerUrl ;
118
116
119
- config . EnableSSL = attr . EnableSSL ;
120
117
break ;
121
118
}
122
119
0 commit comments