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); } }
public NewUsersNoticeHandler(CommunicationObject @object, NodeConnection current, ICrossNodeService crossNodeService) { notice = (CreateOrEditUsersNodeNotice)@object; this.crossNodeService = crossNodeService; this.current = current; }
public EditUsersNoticeHandler(CommunicationObject @object, NodeConnection nodeConnection, ICrossNodeService crossNodeService) { notice = (CreateOrEditUsersNodeNotice)@object; this.nodeConnection = nodeConnection; this.crossNodeService = crossNodeService; }