C# Class Microsoft.Silverlight.Testing.Service.ServiceResult

Result object for asynchronous test service response.
Mostrar archivo Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
CreateExceptionalResult ( Exception except ) : ServiceResult

Creates a new ServiceResult object for a failed result, the sets the exception.

ServiceResult ( ) : System

Initializes a new instance of the ServiceResult class.

TryGetElement ( ) : SimpleXElement

Attempt to process and return the root element of a successful request. Returns null if there was an Exception.

Protected Methods

Method Description
ProcessResponse ( ) : void

Process the response text.

SetResult ( SimpleXElement result ) : void

Sets the result.

Method Details

CreateExceptionalResult() public static method

Creates a new ServiceResult object for a failed result, the sets the exception.
public static CreateExceptionalResult ( Exception except ) : ServiceResult
except System.Exception The Exception object.
return ServiceResult

ProcessResponse() protected method

Process the response text.
protected ProcessResponse ( ) : void
return void

ServiceResult() public method

Initializes a new instance of the ServiceResult class.
public ServiceResult ( ) : System
return System

SetResult() protected method

Sets the result.
protected SetResult ( SimpleXElement result ) : void
result SimpleXElement The LINQ element for the result.
return void

TryGetElement() public method

Attempt to process and return the root element of a successful request. Returns null if there was an Exception.
public TryGetElement ( ) : SimpleXElement
return SimpleXElement