public async Task Write(CastMessage message, bool includeNameSpace = true)
 {
     if (includeNameSpace)
     {
         message.Namespace = Namespace;
     }
     var bytes = message.ToProto();
     await Client.ChromecastSocketService.Write(bytes);
 }
 public ChromecastSSLClientDataReceivedArgs(CastMessage message)
 {
     Message = message;
 }
 public ChromecastSSLClientDataReceivedArgs(CastMessage message)
 {
     Message = message;
 }
Example #4
0
 private void ReceivedMessage(CastMessage castMessage)
 {
     foreach (var channel in Channels.Where(i => i.Namespace == castMessage.Namespace))
     {
         channel.OnMessageReceived(new ChromecastSSLClientDataReceivedArgs(castMessage));
     }
 }