DEPRECATED: Diffusion Silverlight Classic API  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.Transports.DiffusionTransport Class Reference
Inheritance diagram for PushTechnology.Transports.DiffusionTransport:

Public Member Functions

 DiffusionTransport (HtmlWindow htmlWindow, Dispatcher dispatcher, string host, int port, string topic, int maxBufferSize)
 
 DiffusionTransport (HtmlWindow htmlWindow, Dispatcher dispatcher, string methodNameConnectionStatus, string methodNameDataEvent, string host, int port, string topic, int maxBufferSize)
 
void Connect ()
 
void Connect (string host, int port, string topic)
 Performs the connection. More...
 
void Disconnect ()
 
void HandleMessage (WebClientMessageEventArgs e)
 Delegates the message sending to the current web client (if any). More...
 
void ComposeAndSendDiffusionMessage (string header, string message)
 Compose and send a message to the Diffusion server. More...
 
void SendMessage (string topic, string aMessage)
 Sends a message to the Diffusion server. More...
 
void SendTopicMessage (DiffusionTopicMessage aMessage)
 Sends a topic message to the Diffusion server; also handles message encryption. More...
 
void SendMessageEncrypted (string topic, string aMessage)
 Sends an encrypted message to the Diffusion server. More...
 
void SubscribeToTopic (string topic)
 Subscribes to a topic on the Diffusion server. More...
 
void UnsubscribeFromTopic (string topic)
 Unsubscribes from a topic on the Diffusion server. More...
 
void SendPingMessage (string timestamp)
 Sends a ping message to the Diffusion server. More...
 
void InvokeMethodOnScriptObject (string objectName, string methodName, params object[] args)
 Invokes a named method on the named script object, or if the method name is null or empty, invokes the ScriptObject itself, assuming that it represents a JavaScript method. More...
 
void InvokeSilverlightTransportMethod (string methodName, params object[] args)
 Sends a message via the Diffusion Silverlight JavaScript transport. More...
 
void InvokeClientTransportMethod (string methodName, params object[] args)
 Sends a message via the Diffusion Client JavaScript transport. More...
 
void AddScriptObject (string objectName, ScriptObject theObject)
 Stores a pointer to a Diffusion JavaScript object. More...
 
void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 

Properties

bool IsConnected [get]
 
Dictionary< string, ScriptObject > ScriptObjects [get]
 
string Host [get, set]
 
int Port [get, set]
 
string Topic [get, set]
 
string ClientId [get]
 

Constructor & Destructor Documentation

PushTechnology.Transports.DiffusionTransport.DiffusionTransport ( HtmlWindow  htmlWindow,
Dispatcher  dispatcher,
string  host,
int  port,
string  topic,
int  maxBufferSize 
)
PushTechnology.Transports.DiffusionTransport.DiffusionTransport ( HtmlWindow  htmlWindow,
Dispatcher  dispatcher,
string  methodNameConnectionStatus,
string  methodNameDataEvent,
string  host,
int  port,
string  topic,
int  maxBufferSize 
)

Member Function Documentation

void PushTechnology.Transports.DiffusionTransport.AddScriptObject ( string  objectName,
ScriptObject  theObject 
)

Stores a pointer to a Diffusion JavaScript object.

Parameters
objectName
theObject
void PushTechnology.Transports.DiffusionTransport.ComposeAndSendDiffusionMessage ( string  header,
string  message 
)

Compose and send a message to the Diffusion server.

Parameters
header
message
void PushTechnology.Transports.DiffusionTransport.Connect ( )
void PushTechnology.Transports.DiffusionTransport.Connect ( string  host,
int  port,
string  topic 
)

Performs the connection.

Parameters
host
port
topic
void PushTechnology.Transports.DiffusionTransport.Disconnect ( )
void PushTechnology.Transports.DiffusionTransport.Dispose ( )

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

void PushTechnology.Transports.DiffusionTransport.HandleMessage ( WebClientMessageEventArgs  e)

Delegates the message sending to the current web client (if any).

Parameters
e
void PushTechnology.Transports.DiffusionTransport.InvokeClientTransportMethod ( string  methodName,
params object[]  args 
)

Sends a message via the Diffusion Client JavaScript transport.

Parameters
methodName
args
void PushTechnology.Transports.DiffusionTransport.InvokeMethodOnScriptObject ( string  objectName,
string  methodName,
params object[]  args 
)

Invokes a named method on the named script object, or if the method name is null or empty, invokes the ScriptObject itself, assuming that it represents a JavaScript method.

Parameters
objectName
methodName
args
void PushTechnology.Transports.DiffusionTransport.InvokeSilverlightTransportMethod ( string  methodName,
params object[]  args 
)

Sends a message via the Diffusion Silverlight JavaScript transport.

Parameters
methodName
args
void PushTechnology.Transports.DiffusionTransport.SendMessage ( string  topic,
string  aMessage 
)

Sends a message to the Diffusion server.

Parameters
topic
aMessage
void PushTechnology.Transports.DiffusionTransport.SendMessageEncrypted ( string  topic,
string  aMessage 
)

Sends an encrypted message to the Diffusion server.

Parameters
topic
aMessage
void PushTechnology.Transports.DiffusionTransport.SendPingMessage ( string  timestamp)

Sends a ping message to the Diffusion server.

Parameters
timestamp
void PushTechnology.Transports.DiffusionTransport.SendTopicMessage ( DiffusionTopicMessage  aMessage)

Sends a topic message to the Diffusion server; also handles message encryption.

Parameters
aMessage
void PushTechnology.Transports.DiffusionTransport.SubscribeToTopic ( string  topic)

Subscribes to a topic on the Diffusion server.

Parameters
topic
void PushTechnology.Transports.DiffusionTransport.UnsubscribeFromTopic ( string  topic)

Unsubscribes from a topic on the Diffusion server.

Parameters
topic

Property Documentation

string PushTechnology.Transports.DiffusionTransport.ClientId
get
string PushTechnology.Transports.DiffusionTransport.Host
getset
bool PushTechnology.Transports.DiffusionTransport.IsConnected
get
int PushTechnology.Transports.DiffusionTransport.Port
getset
Dictionary<string,ScriptObject> PushTechnology.Transports.DiffusionTransport.ScriptObjects
get
string PushTechnology.Transports.DiffusionTransport.Topic
getset

The documentation for this class was generated from the following file: