示例#1
0
 private void TriggerEvent(SmsHubEventType type, Guid?userId, Guid?numberId,
                           SmsContactState contactState = null,
                           SmsMessage message           = null,
                           string excludeConnectionId   = null)
 {
     Clients
     .Group($"SmsHub:Source:{userId}/{numberId}", excludeConnectionId)
     .triggerEvent(
         new SmsHubEventPayload
     {
         Type         = type,
         TypeName     = type.ToString(),
         Message      = message,
         ContactState = contactState
     });
 }
 public MessageView(SmsContactState contact)
 {
     InitializeComponent();
     listMessages.ItemsSource = SignalRClient.Instance.GetMessages();
 }