public ChannelController( Fifthweek.Api.Core.ICommandHandler <Fifthweek.Api.Channels.Commands.CreateChannelCommand> createChannel, Fifthweek.Api.Core.ICommandHandler <Fifthweek.Api.Channels.Commands.UpdateChannelCommand> updateChannel, Fifthweek.Api.Core.ICommandHandler <Fifthweek.Api.Channels.Commands.DeleteChannelCommand> deleteChannel, Fifthweek.Api.Identity.Shared.Membership.IRequesterContext requesterContext, Fifthweek.Shared.IGuidCreator guidCreator) { if (createChannel == null) { throw new ArgumentNullException("createChannel"); } if (updateChannel == null) { throw new ArgumentNullException("updateChannel"); } if (deleteChannel == null) { throw new ArgumentNullException("deleteChannel"); } if (requesterContext == null) { throw new ArgumentNullException("requesterContext"); } if (guidCreator == null) { throw new ArgumentNullException("guidCreator"); } this.createChannel = createChannel; this.updateChannel = updateChannel; this.deleteChannel = deleteChannel; this.requesterContext = requesterContext; this.guidCreator = guidCreator; }
public UserStateController( Fifthweek.Api.Core.IQueryHandler <Fifthweek.Api.Aggregations.Queries.GetUserStateQuery, Fifthweek.Api.Aggregations.Queries.UserState> getUserState, Fifthweek.Shared.ITimestampCreator timestampCreator, Fifthweek.Api.Identity.Shared.Membership.IRequesterContext requesterContext) { if (getUserState == null) { throw new ArgumentNullException("getUserState"); } if (timestampCreator == null) { throw new ArgumentNullException("timestampCreator"); } if (requesterContext == null) { throw new ArgumentNullException("requesterContext"); } this.getUserState = getUserState; this.timestampCreator = timestampCreator; this.requesterContext = requesterContext; }