public async Task SendAsync(RealTimeMessage msg) { await this.Transport.SendAsync(msg.ToString()); }
internal static async Task SendMessageAsync(RealTimeMessage msg) { if (App.EnableRealtime == false) throw new Exception("Real time support has not been enabled on the SDK. Initialize the application with AppacitiveSettings.EnableRealTimeSupport as true."); if (App.Channel == null) throw new Exception("Real time infrastucture not initialized. Make sure that App has been initialized."); await App.Channel.SendAsync(msg); }
public void Notify(RealTimeMessage msg) { var copy = this.Triggered; if (copy != null) copy(msg); }