Class Result
Resultado da acção efetuada
Inheritance
System.Object
Result
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GlobalSist.Server.WMS.WCF.Response
Assembly: GlobalSist.Server.WMS.dll
Syntax
public class Result
Constructors
Result()
Declaration
public Result()
Properties
AdditionalReturnValues
Obtém ou define a lista de valores adicionais
Declaration
public Dictionary<string, string> AdditionalReturnValues { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
ErrorMessage
Obtém ou define a mensagem de erro
Declaration
public string ErrorMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Handled
Obtém ou define se o erro foi tratado
Declaration
public bool Handled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
RecordKey
Obtém ou define o identificador do registo
Declaration
public string RecordKey { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Succedded
Obtém ou define se concluíu com sucesso
Declaration
public bool Succedded { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
FaultedResult(String, String, String)
Erro ao realizar acção
Declaration
public static Result FaultedResult(string ERPCompanyName, string errorMessage, string stackTrace)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ERPCompanyName | Nome da empresa do ERP. |
| System.String | errorMessage | A mensagem de erro. |
| System.String | stackTrace | Stack trace. |
Returns
| Type | Description |
|---|---|
| Result |
HandledResult(String, String, String)
Erro ao realizar acção, mas o mesmo foi tratado internamente.
Declaration
public static Result HandledResult(string ERPCompanyName, string errorMessage, string stackTrace)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ERPCompanyName | Nome da empresa do ERP. |
| System.String | errorMessage | A mensagem de erro. |
| System.String | stackTrace | Stack trace. |
Returns
| Type | Description |
|---|---|
| Result |
SucceddedResult(String, String, String, Dictionary<String, String>)
Acção concretizada com sucesso
Declaration
public static Result SucceddedResult(string ERPCompanyName, string methodName, string recordKey = "", Dictionary<string, string> additionalReturnValues = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | ERPCompanyName | Nome da empresa do ERP. |
| System.String | methodName | Nome do metodo invocado. |
| System.String | recordKey | o identificador do registo. |
| System.Collections.Generic.Dictionary<System.String, System.String> | additionalReturnValues | Valores adicionais. |
Returns
| Type | Description |
|---|---|
| Result |