public Task HandleAsync(AddComplaintsChannelCommand command)
        {
            using var session = this._sessionFactory.Create();
            var complaintsChannel = new ComplaintsChannel(command.ChannelId, command.ServerId);

            return(session.AddAsync(complaintsChannel));
        }
示例#2
0
 public RemoveComplaintsChannelCommand(ComplaintsChannel complaintsChannel)
 {
     this.ComplaintsChannel = complaintsChannel;
 }
 public GetComplaintsChannelQueryResult(ComplaintsChannel complaintsChannel)
 {
     this.ComplaintsChannel = complaintsChannel;
 }
示例#4
0
 public RemoveComplaintsChannelCommand(ulong channelId, ulong serverId)
 {
     this.ComplaintsChannel = new ComplaintsChannel(channelId, serverId);
 }