C# 클래스 C2dmSharp.Server.C2dmService

파일 보기 프로젝트 열기: Redth/C2DM-Sharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
running bool

공개 메소드들

메소드 설명
C2dmService ( ) : System
C2dmService ( string senderID, string password, string applicationID ) : System

Ctor

QueueMessage ( C2dmMessage msg ) : void

Queues a new C2DM Message to be sent

QueueMessage ( string registrationId, NameValueCollection data, string collapseKey ) : void

Queues a new C2DM Message to be sent

QueueMessage ( string registrationId, NameValueCollection data, string collapseKey, bool delayWhileIdle ) : void

Queues a new C2DM Message to be sent

RefreshGoogleAuthToken ( ) : void

Explicitly refreshes the Google Auth Token. Usually not necessary.

SetNumberOfWorkers ( int value ) : void

Increase or decrease the number of workers to process queued messages.

Start ( ) : void
Start ( int numberOfWorkers ) : void

Starts the specified number of workers ready to send queued messages

Stop ( ) : void

Stops all workers and the service, without waiting for queued messages to be sent.

비공개 메소드들

메소드 설명
init ( string senderID, string password, string applicationID ) : void
messageTransportWork ( object state ) : void

메소드 상세

C2dmService() 공개 메소드

public C2dmService ( ) : System
리턴 System

C2dmService() 공개 메소드

Ctor
public C2dmService ( string senderID, string password, string applicationID ) : System
senderID string Email address (google account) used to sign up for Google's C2DM application Whitelist
password string Password used to login with Email
applicationID string Application (Package Name) used to sign up for Google's C2DM Whitelist
리턴 System

QueueMessage() 공개 메소드

Queues a new C2DM Message to be sent
public QueueMessage ( C2dmMessage msg ) : void
msg C2dmMessage Constructed C2dmMessage parameter
리턴 void

QueueMessage() 공개 메소드

Queues a new C2DM Message to be sent
public QueueMessage ( string registrationId, NameValueCollection data, string collapseKey ) : void
registrationId string Registration ID of the Device
data System.Collections.Specialized.NameValueCollection Key/Value Collection of data or 'extras' to send
collapseKey string Collapse Key
리턴 void

QueueMessage() 공개 메소드

Queues a new C2DM Message to be sent
public QueueMessage ( string registrationId, NameValueCollection data, string collapseKey, bool delayWhileIdle ) : void
registrationId string Registration ID of the Device
data System.Collections.Specialized.NameValueCollection Key/Value Collection of data or 'extras' to send
collapseKey string Collapse Key
delayWhileIdle bool If true, C2DM will only be delivered once the device's screen is on
리턴 void

RefreshGoogleAuthToken() 공개 메소드

Explicitly refreshes the Google Auth Token. Usually not necessary.
public RefreshGoogleAuthToken ( ) : void
리턴 void

SetNumberOfWorkers() 공개 메소드

Increase or decrease the number of workers to process queued messages.
public SetNumberOfWorkers ( int value ) : void
value int New Value for the number of workers to use
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Start() 공개 메소드

Starts the specified number of workers ready to send queued messages
public Start ( int numberOfWorkers ) : void
numberOfWorkers int Number of Workers
리턴 void

Stop() 공개 메소드

Stops all workers and the service, without waiting for queued messages to be sent.
public Stop ( ) : void
리턴 void

프로퍼티 상세

running 공개적으로 프로퍼티

public bool running
리턴 bool