public ApproveRejectComment(Authorization authorization, INotifyComment notifyComment, Mapper mapper, ITableClientFactory tableClientFactory)
 {
     _authorization      = authorization ?? throw new ArgumentNullException(nameof(authorization));
     _notifier           = notifyComment ?? throw new ArgumentNullException(nameof(notifyComment));
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _tableClientFactory = tableClientFactory ?? throw new ArgumentNullException(nameof(tableClientFactory));
 }
示例#2
0
 public AddComment(Authorization authorization, INotifyComment notifyComment, Mapper mapper, ITableClientFactory tableClientFactory)
 {
     _authorization      = authorization;
     _notifier           = notifyComment;
     _mapper             = mapper;
     _tableClientFactory = tableClientFactory;
 }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AzureTablesSagaRepository"/> class.
        /// </summary>
        /// <param name="tableClientFactory">The table client factory.</param>
        /// <param name="messageSerialiser">The message serialiser.</param>
        /// <param name="sagaFactory">The saga factory.</param>
        public AzureTablesSagaRepository(ITableClientFactory tableClientFactory, IMessageSerialiser messageSerialiser, ISagaFactory sagaFactory)
        {
            Guard.ArgumentIsNotNull(tableClientFactory, nameof(tableClientFactory));
            Guard.ArgumentIsNotNull(sagaFactory, nameof(sagaFactory));
            Guard.ArgumentIsNotNull(messageSerialiser, nameof(messageSerialiser));


            this.tableClientFactory = tableClientFactory;
            this.messageSerialiser  = messageSerialiser;
            this.sagaFactory        = sagaFactory;
        }
 public SeasonRepository(ITableClientFactory <SeasonStorage> tableClientFactory)
 {
     _tableClient = tableClientFactory.GetCloudTable();
 }
示例#5
0
 public SettingsService(ITableClientFactory tableClientFactory)
 {
     _tableClientFactory = tableClientFactory;
 }
示例#6
0
 public FeedTitlesRepository(ITableClientFactory <TitlesStorage> tableClientFactory)
 {
     _tableClient = tableClientFactory.GetCloudTable();
 }
示例#7
0
 public InterestedSeriesRepository(ITableClientFactory <InterestedStorage> tableClientFactory)
 {
     _tableClient = tableClientFactory.GetCloudTable();
 }
 public AnimeInfoRepository(ITableClientFactory <AnimeInfoStorage> tableClientFactory)
 {
     _tableClient = tableClientFactory.GetCloudTable();
 }
示例#9
0
 public ListComments(Authorization authorization, Mapper mapper, ITableClientFactory tableClientFactory)
 {
     _authorization      = authorization ?? throw new ArgumentNullException(nameof(authorization));
     _mapper             = mapper;
     _tableClientFactory = tableClientFactory;
 }
示例#10
0
 public SubscriptionRepository(ITableClientFactory <SubscriptionStorage> tableClientFactory) => _tableClient = tableClientFactory.GetCloudTable();