Class ProfileRequest
Abstracts Neon Profile Service named pipe command requests.
Implements
Namespace: Neon.Deployment
Assembly: Neon.Deployment.dll
Syntax
public class ProfileRequest : IProfileRequest
Properties
Args
Returns the standard command arguments.
Declaration
public Dictionary<string, string> Args { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Command
Returns the command.
Declaration
public string Command { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Create(string, Dictionary<string, string>)
Creates a command with optional arguments.
Declaration
public static ProfileRequest Create(string command, Dictionary<string, string> args = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | command | The command name. noteArgument names and values may not include commas. |
| Dictionary<string, string> | args | The optional arguments. |
Returns
| Type | Description |
|---|---|
| ProfileRequest | The ProfileRequest. |
Parse(string)
Parses a request from a line of text read from the named pipe.
Declaration
public static ProfileRequest Parse(string commandLine)
Parameters
| Type | Name | Description |
|---|---|---|
| string | commandLine | The command line. |
Returns
| Type | Description |
|---|---|
| ProfileRequest | The ProfileRequest. |
Exceptions
| Type | Condition |
|---|---|
| FormatException | Thrown for invalid command lines. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |