public async void SendNewUsersNodeNoticeAsync(ShortUser user, BlockSegmentVm blockSegment)
 {
     try
     {
         CreateOrEditUsersNodeNotice notice = new CreateOrEditUsersNodeNotice(Enums.NodeNoticeCode.NewUsers, user, blockSegment);
         await SendNoticeToNodesAsync(notice).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         Logger.WriteLog(ex);
     }
 }
 public async void SendEditUsersNodeNoticeAsync(List <ShortUser> users, List <BlockSegmentVm> blockSegments)
 {
     try
     {
         CreateOrEditUsersNodeNotice notice = new CreateOrEditUsersNodeNotice(Enums.NodeNoticeCode.EditUsers, users, blockSegments);
         await SendNoticeToNodesAsync(notice).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         Logger.WriteLog(ex);
     }
 }
Beispiel #3
0
 public NewUsersNoticeHandler(CommunicationObject @object, NodeConnection current, ICrossNodeService crossNodeService)
 {
     notice = (CreateOrEditUsersNodeNotice)@object;
     this.crossNodeService = crossNodeService;
     this.current          = current;
 }
Beispiel #4
0
 public EditUsersNoticeHandler(CommunicationObject @object, NodeConnection nodeConnection, ICrossNodeService crossNodeService)
 {
     notice = (CreateOrEditUsersNodeNotice)@object;
     this.nodeConnection   = nodeConnection;
     this.crossNodeService = crossNodeService;
 }