C# 클래스 Elastacloud.AzureManagement.Fluent.Commands.Services.ServiceCommand

Abstract base class used to encapsulate a command to a hosted service
상속: ICommand
파일 보기 프로젝트 열기: azurecoder/fluent-management 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Execute ( ) : void

Executes the request and waits for a response from the Service Management API Control is delegated back to the calling class when the reponse comes back which releases the WaitHandle

Parse ( HttpWebResponse response, string root, BaseParser baseParser = null ) : dynamic

Used to get and instance of the BaseParser that will parse the Xml response from the Fabric

ToString ( ) : string

Used to return the routable value of the command to the correct notification interface

보호된 메소드들

메소드 설명
CreatePayload ( ) : string

Creates an empty Xml payload since the service command itself does not expect a response - overriden in a derived class which does

ErrorResponseCallback ( WebException exception ) : void

The error callback exception that will be attached to if the response presents a failure of some sort - to be routed to a notification interface of a certain type

ResponseCallback ( HttpWebResponse webResponse ) : void

Initially used via a response callback for commands which expect a async response

ServiceCommand ( ) : System

메소드 상세

CreatePayload() 보호된 메소드

Creates an empty Xml payload since the service command itself does not expect a response - overriden in a derived class which does
protected CreatePayload ( ) : string
리턴 string

ErrorResponseCallback() 보호된 메소드

The error callback exception that will be attached to if the response presents a failure of some sort - to be routed to a notification interface of a certain type
protected ErrorResponseCallback ( WebException exception ) : void
exception System.Net.WebException The web exception as it stands
리턴 void

Execute() 공개 메소드

Executes the request and waits for a response from the Service Management API Control is delegated back to the calling class when the reponse comes back which releases the WaitHandle
public Execute ( ) : void
리턴 void

Parse() 공개 정적인 메소드

Used to get and instance of the BaseParser that will parse the Xml response from the Fabric
public static Parse ( HttpWebResponse response, string root, BaseParser baseParser = null ) : dynamic
response System.Net.HttpWebResponse the HttpWebResponse that is returned
root string the root element neededs
baseParser Elastacloud.AzureManagement.Fluent.Commands.Parsers.BaseParser used to parse the response coming back
리턴 dynamic

ResponseCallback() 보호된 메소드

Initially used via a response callback for commands which expect a async response
protected ResponseCallback ( HttpWebResponse webResponse ) : void
webResponse System.Net.HttpWebResponse the HttpWebResponse that will be sent back to the user from the request
리턴 void

ServiceCommand() 보호된 메소드

protected ServiceCommand ( ) : System
리턴 System

ToString() 공개 메소드

Used to return the routable value of the command to the correct notification interface
public ToString ( ) : string
리턴 string