Class ProfileHandlerResult
Describes the results returned by ProfileServer handlers.
Namespace: Neon.Deployment
Assembly: Neon.Deployment.dll
Syntax
public class ProfileHandlerResult
Properties
Error
Returns a human readable error message.
Declaration
public string Error { get; }
Property Value
Type | Description |
---|---|
string |
Status
Specifies one of the ProfileStatus values. This defaults to OK.
Declaration
public string Status { get; }
Property Value
Type | Description |
---|---|
string |
Value
Specifies the value returned by the handler.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Create(string)
Constructs a handler value result.
Declaration
public static ProfileHandlerResult Create(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The handler result. |
Returns
Type | Description |
---|---|
ProfileHandlerResult | The ProfileHandlerResult. |
CreateError(ProfileRequest, string, string)
Constructs an error result.
Declaration
public static ProfileHandlerResult CreateError(ProfileRequest request, string status, string message)
Parameters
Type | Name | Description |
---|---|---|
ProfileRequest | request | Specifies the profile request or |
string | status | One of the ProfileStatus codes. |
string | message | The error message. |
Returns
Type | Description |
---|---|
ProfileHandlerResult | The ProfileHandlerResult. |
Remarks
note
This method will examine the message
, looking for
underlying 1Password errors and will potentially override the
status
passed.