コード例 #1
0
        public DeleteChannelCommandHandler(
            Fifthweek.Api.Identity.Shared.Membership.IRequesterSecurity requesterSecurity,
            Fifthweek.Api.Channels.Shared.IChannelSecurity channelSecurity,
            Fifthweek.Api.Channels.IDeleteChannelDbStatement deleteChannel,
            Fifthweek.Api.FileManagement.Shared.IScheduleGarbageCollectionStatement scheduleGarbageCollection)
        {
            if (requesterSecurity == null)
            {
                throw new ArgumentNullException("requesterSecurity");
            }

            if (channelSecurity == null)
            {
                throw new ArgumentNullException("channelSecurity");
            }

            if (deleteChannel == null)
            {
                throw new ArgumentNullException("deleteChannel");
            }

            if (scheduleGarbageCollection == null)
            {
                throw new ArgumentNullException("scheduleGarbageCollection");
            }

            this.requesterSecurity         = requesterSecurity;
            this.channelSecurity           = channelSecurity;
            this.deleteChannel             = deleteChannel;
            this.scheduleGarbageCollection = scheduleGarbageCollection;
        }
コード例 #2
0
        public UpdateChannelCommandHandler(
            Fifthweek.Api.Identity.Shared.Membership.IRequesterSecurity requesterSecurity,
            Fifthweek.Api.Channels.Shared.IChannelSecurity channelSecurity,
            Fifthweek.Api.Channels.IUpdateChannelDbStatement updateChannel)
        {
            if (requesterSecurity == null)
            {
                throw new ArgumentNullException("requesterSecurity");
            }

            if (channelSecurity == null)
            {
                throw new ArgumentNullException("channelSecurity");
            }

            if (updateChannel == null)
            {
                throw new ArgumentNullException("updateChannel");
            }

            this.requesterSecurity = requesterSecurity;
            this.channelSecurity   = channelSecurity;
            this.updateChannel     = updateChannel;
        }