Class ZOJSONMessagePublisher
Inheritance
System.Object
ZOJSONMessagePublisher
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Unity.ZeroSim.dll
Syntax
public class ZOJSONMessagePublisher
Properties
|
Improve this Doc
View Source
IPAddress
Declaration
public IPAddress IPAddress { get; set; }
Property Value
Type |
Description |
System.Net.IPAddress |
|
|
Improve this Doc
View Source
IsSubscribersConnected
Declaration
public bool IsSubscribersConnected { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Port
Declaration
public int Port { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Topic
Declaration
public string Topic { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
OnSubscriberConnected(ZOTCPServer, TcpClient)
Declaration
protected virtual Task OnSubscriberConnected(ZOTCPServer tcpServer, TcpClient tcpClient)
Parameters
Type |
Name |
Description |
ZOTCPServer |
tcpServer |
|
System.Net.Sockets.TcpClient |
tcpClient |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
OnSubscriberDisconnected(ZOTCPServer, TcpClient)
Declaration
protected virtual Task OnSubscriberDisconnected(ZOTCPServer tcpServer, TcpClient tcpClient)
Parameters
Type |
Name |
Description |
ZOTCPServer |
tcpServer |
|
System.Net.Sockets.TcpClient |
tcpClient |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Publish(JObject)
Declaration
public virtual Task Publish(JObject jsonObj)
Parameters
Type |
Name |
Description |
Newtonsoft.Json.Linq.JObject |
jsonObj |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Publish(String)
Declaration
public virtual Task Publish(string jsonString)
Parameters
Type |
Name |
Description |
System.String |
jsonString |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
RunAsync()
Declaration
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Stop()
Declaration