Esempio n. 1
0
        internal static PubsubWhisperMessage Create(BasePubsubClient client, Model model)
        {
            var entity = new PubsubWhisperMessage(client, model.Data.Id);

            entity.Update(model);
            return(entity);
        }
Esempio n. 2
0
 public static async Task HandleWhisperAsync(BasePubsubClient client, string content)
 {
     var model  = JsonConvert.DeserializeObject <WhisperMessage>(content);
     var entity = PubsubWhisperMessage.Create(client, model);
     await client.whisperReceivedEvent.InvokeAsync(entity).ConfigureAwait(false);
 }