Skip to content

Commit d275387

Browse files
committed
Marked the EnableSSL property as Obsolete
This property isn't required and can be inferred. As such we will be removing it in the future. #38
1 parent 3874a02 commit d275387

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Source/Extras/Extensions/ExceptionlessExtraConfigurationExtensions.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,6 @@ public static void ReadFromAppSettings(this ExceptionlessConfiguration config) {
173173
bool enabled;
174174
if (Boolean.TryParse(ConfigurationManager.AppSettings["Exceptionless:Enabled"], out enabled))
175175
config.Enabled = enabled;
176-
177-
bool enableSSL;
178-
if (Boolean.TryParse(ConfigurationManager.AppSettings["Exceptionless:EnableSSL"], out enableSSL))
179-
config.EnableSSL = enableSSL;
180176

181177
string serverUrl = ConfigurationManager.AppSettings["Exceptionless:ServerUrl"];
182178
if (!String.IsNullOrEmpty(serverUrl))
@@ -195,11 +191,7 @@ public static void ReadFromEnvironmentalVariables(this ExceptionlessConfiguratio
195191
bool enabled;
196192
if (Boolean.TryParse(GetEnvironmentalVariable("Exceptionless:Enabled"), out enabled))
197193
config.Enabled = enabled;
198-
199-
bool enableSSL;
200-
if (Boolean.TryParse(GetEnvironmentalVariable("Exceptionless:EnableSSL"), out enableSSL))
201-
config.EnableSSL = enableSSL;
202-
194+
203195
string serverUrl = GetEnvironmentalVariable("Exceptionless:ServerUrl");
204196
if (!String.IsNullOrEmpty(serverUrl))
205197
config.ApiKey = serverUrl;

Source/Shared/Configuration/ExceptionlessAttribute.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public ExceptionlessAttribute(string apiKey) {
3232
/// </summary>
3333
/// ///
3434
/// <value><c>true</c> to enable SSL; otherwise, <c>false</c>.</value>
35+
[ObsoleteAttribute("This property will be removed in a future release.")]
3536
public bool EnableSSL { get; set; }
3637

3738
/// <summary>

Source/Shared/Configuration/ExceptionlessConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public string ApiKey {
9797
/// <summary>
9898
/// Whether or not the client should use SSL when communicating with the server.
9999
/// </summary>
100+
[ObsoleteAttribute("This property will be removed in a future release.")]
100101
public bool EnableSSL { get; set; }
101102

102103
/// <summary>

0 commit comments

Comments
 (0)