Property | Type | Description | |
---|---|---|---|
running | bool |
Method | Description | |
---|---|---|
C2dmService ( ) : System | ||
C2dmService ( string senderID, string password, string applicationID ) : System |
Ctor
|
|
QueueMessage ( |
Queues a new C2DM Message to be sent
|
|
QueueMessage ( string registrationId, |
Queues a new C2DM Message to be sent
|
|
QueueMessage ( string registrationId, |
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.
|
Method | Description | |
---|---|---|
init ( string senderID, string password, string applicationID ) : void | ||
messageTransportWork ( object state ) : void |
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 |
return | System |
public QueueMessage ( |
||
msg | Constructed C2dmMessage parameter | |
return | void |
public QueueMessage ( string registrationId, |
||
registrationId | string | Registration ID of the Device |
data | Key/Value Collection of data or 'extras' to send | |
collapseKey | string | Collapse Key |
return | void |
public QueueMessage ( string registrationId, |
||
registrationId | string | Registration ID of the Device |
data | 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 |
return | void |
public SetNumberOfWorkers ( int value ) : void | ||
value | int | New Value for the number of workers to use |
return | void |
public Start ( int numberOfWorkers ) : void | ||
numberOfWorkers | int | Number of Workers |
return | void |