コード例 #1
0
    public Task <CancellationToken> SendTopicDataImmediately(TopicData topicData)
    {
        byte[] buffer = topicData.ToByteArray();
        socket.SendFrame(buffer);

        return(Task.FromResult(new CancellationToken(false)));
    }
コード例 #2
0
 public void SendTopicData(TopicData td)
 {
     byte[] buffer = td.ToByteArray();
     socket.SendFrame(buffer);
 }