public SymbolGcsWriter(IOptions <GoogleCloudStorageOptions> options, IStorageClientFactory storageClientFactory, ILogger <SymbolGcsWriter> logger) { _options = options.Value; _storageClientFactory = storageClientFactory ?? throw new ArgumentNullException(nameof(storageClientFactory)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="UploadActivity"/> class. /// </summary> /// <param name="storageClientFactory">the storage client factory.</param> /// <param name="userDataStream">the user data stream.</param> /// <param name="localizer">Localization service.</param> public UploadActivity( IStorageClientFactory storageClientFactory, IDataStreamFacade userDataStream, IStringLocalizer <Strings> localizer) { this.storageClientFactory = storageClientFactory ?? throw new ArgumentNullException(nameof(storageClientFactory)); this.userDataStream = userDataStream ?? throw new ArgumentNullException(nameof(userDataStream)); this.localizer = localizer ?? throw new ArgumentNullException(nameof(localizer)); }
/// <summary> /// Initializes a new instance of the <see cref="HandleExportFailureActivity"/> class. /// </summary> /// <param name="exportDataRepository">the export data respository.</param> /// <param name="storageClientFactory">the storage client factory.</param> /// <param name="botOptions">the bot options.</param> /// <param name="botAdapter">the users service.</param> /// <param name="userDataRepository">the user data repository.</param> /// <param name="localizer">Localization service.</param> public HandleExportFailureActivity( IExportDataRepository exportDataRepository, IStorageClientFactory storageClientFactory, IOptions <BotOptions> botOptions, ICCBotFrameworkHttpAdapter botAdapter, IUserDataRepository userDataRepository, IStringLocalizer <Strings> localizer) { this.exportDataRepository = exportDataRepository ?? throw new ArgumentNullException(nameof(exportDataRepository)); this.storageClientFactory = storageClientFactory ?? throw new ArgumentNullException(nameof(storageClientFactory)); this.botAdapter = botAdapter ?? throw new ArgumentNullException(nameof(botAdapter)); this.authorAppId = botOptions?.Value?.AuthorAppId ?? throw new ArgumentNullException(nameof(botOptions)); this.userDataRepository = userDataRepository ?? throw new ArgumentNullException(nameof(userDataRepository)); this.localizer = localizer ?? throw new ArgumentNullException(nameof(localizer)); }
/// <summary> /// Initializes a new instance of the <see cref="DraftNotificationsController"/> class. /// </summary> /// <param name="notificationDataRepository">Notification data repository instance.</param> /// <param name="teamDataRepository">Team data repository instance.</param> /// <param name="draftNotificationPreviewService">Draft notification preview service.</param> /// <param name="appSettingsService">App Settings service.</param> /// <param name="localizer">Localization service.</param> /// <param name="groupsService">group service.</param> /// <param name="storageClientFactory">Storage Library</param> public DraftNotificationsController( INotificationDataRepository notificationDataRepository, ITeamDataRepository teamDataRepository, IDraftNotificationPreviewService draftNotificationPreviewService, IAppSettingsService appSettingsService, IStringLocalizer <Strings> localizer, IGroupsService groupsService, IStorageClientFactory storageClientFactory, IOptions <UserAppOptions> userAppOptions) { this.notificationDataRepository = notificationDataRepository ?? throw new ArgumentNullException(nameof(notificationDataRepository)); this.teamDataRepository = teamDataRepository ?? throw new ArgumentNullException(nameof(teamDataRepository)); this.draftNotificationPreviewService = draftNotificationPreviewService ?? throw new ArgumentNullException(nameof(draftNotificationPreviewService)); this.localizer = localizer ?? throw new ArgumentNullException(nameof(localizer)); this.groupsService = groupsService ?? throw new ArgumentNullException(nameof(groupsService)); this.storageClientFactory = storageClientFactory ?? throw new ArgumentNullException(nameof(storageClientFactory)); this.userAppOptions = userAppOptions?.Value ?? throw new ArgumentNullException(nameof(userAppOptions)); this.appSettingsService = appSettingsService ?? throw new ArgumentNullException(nameof(appSettingsService)); }