-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding api to retrieve environment variables (#195)
- Loading branch information
1 parent
740a26a
commit d4bb543
Showing
3 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections.Generic; | ||
using Kudu.Contracts.Infrastructure; | ||
using Newtonsoft.Json; | ||
|
||
namespace Kudu.Contracts.Diagnostics | ||
{ | ||
public class ProcessEnvironmentInfo : Dictionary<string, string>, INamedObject | ||
{ | ||
private readonly string _name; | ||
|
||
public ProcessEnvironmentInfo() | ||
{ | ||
} | ||
|
||
public ProcessEnvironmentInfo(string name, Dictionary<string, string> values) | ||
: base(values) | ||
{ | ||
_name = name; | ||
} | ||
|
||
[JsonProperty(PropertyName = "name")] | ||
string INamedObject.Name { get { return _name; } } | ||
} | ||
} |
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