public async Task SendAsync(RealTimeMessage msg)
 {
     await this.Transport.SendAsync(msg.ToString());
 }
Ejemplo n.º 2
0
        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);

        }
Ejemplo n.º 3
0
 public void Notify(RealTimeMessage msg)
 {
     var copy = this.Triggered;
     if (copy != null)
         copy(msg);
 }