public Task HandleAsync(AddComplaintsChannelCommand command) { using var session = this._sessionFactory.Create(); var complaintsChannel = new ComplaintsChannel(command.ChannelId, command.ServerId); return(session.AddAsync(complaintsChannel)); }
public RemoveComplaintsChannelCommand(ComplaintsChannel complaintsChannel) { this.ComplaintsChannel = complaintsChannel; }
public GetComplaintsChannelQueryResult(ComplaintsChannel complaintsChannel) { this.ComplaintsChannel = complaintsChannel; }
public RemoveComplaintsChannelCommand(ulong channelId, ulong serverId) { this.ComplaintsChannel = new ComplaintsChannel(channelId, serverId); }