This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
255 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/NewRelic.Microsoft.SqlServer.Plugin/Configuration/ProxyElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using System.Configuration; | ||
|
||
namespace NewRelic.Microsoft.SqlServer.Plugin.Configuration | ||
{ | ||
internal class ProxyElement : ConfigurationElement | ||
{ | ||
/// <summary> | ||
/// The proxy server host name. Required. | ||
/// </summary> | ||
[ConfigurationProperty("host", DefaultValue = "", IsKey = false, IsRequired = true)] | ||
public string Host | ||
{ | ||
get { return ((string)(base["host"])); } | ||
set { base["host"] = value; } | ||
} | ||
/// <summary> | ||
/// The proxy server port (optional - defaults to 8080). | ||
/// </summary> | ||
[ConfigurationProperty("port", DefaultValue = "8080", IsKey = false, IsRequired = false)] | ||
public string Port | ||
{ | ||
get { return ((string)(base["port"])); } | ||
set { base["port"] = value; } | ||
} | ||
/// <summary> | ||
/// The username used to authenticate with the proxy server (optional). | ||
/// </summary> | ||
[ConfigurationProperty("user", DefaultValue = "", IsKey = false, IsRequired = false)] | ||
public string User | ||
{ | ||
get { return ((string)(base["user"])); } | ||
set { base["user"] = value; } | ||
} | ||
/// <summary> | ||
/// The password used to authenticate with the proxy server (optional). | ||
/// </summary> | ||
[ConfigurationProperty("password", DefaultValue = "", IsKey = false, IsRequired = false)] | ||
public string Password | ||
{ | ||
get { return ((string)(base["password"])); } | ||
set { base["password"] = value; } | ||
} | ||
/// <summary> | ||
/// The domain used to authenticate with the proxy server (optional). | ||
/// </summary> | ||
[ConfigurationProperty("domain", DefaultValue = "", IsKey = false, IsRequired = false)] | ||
public string Domain | ||
{ | ||
get { return ((string)(base["domain"])); } | ||
set { base["domain"] = value; } | ||
} | ||
/// <summary> | ||
/// 'true' or 'false. Uses the credentials of the account running the plugin (optional - defaults to false). | ||
/// </summary> | ||
[ConfigurationProperty("useDefaultCredentials", DefaultValue = "false", IsKey = false, IsRequired = false)] | ||
public string UseDefaultCredentials | ||
{ | ||
get { return ((string)(base["useDefaultCredentials"])); } | ||
set { base["useDefaultCredentials"] = value; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.