public CaseViewController(ILogger <CaseViewController> logger, IDatabase database, IOptions <InternalConfig> config, IIdentityManager identityManager, IDiscordAPIInterface discordInterface, IDiscordAnnouncer modCaseAnnouncer, IFilesHandler filesHandler, IPunishmentHandler punishmentHandler) { this.logger = logger; this.database = database; this.config = config; this.identityManager = identityManager; this.discordAnnouncer = modCaseAnnouncer; this.discord = discordInterface; this.filesHandler = filesHandler; this.punishmentHandler = punishmentHandler; }
static void Main(string[] args) { IFilesHandler filesHandler = GetFilesHandler(); Console.Write("Введите формат файла (например .doc): "); string extension = Console.ReadLine(); try { AbstractHandler handler = filesHandler.GetHandler(extension); handler.Create(); handler.Open(); handler.Change(); handler.Save(); } catch (KeyNotFoundException) { Console.WriteLine("Данный формат не поддерживается!!!"); } Console.ReadLine(); }
public FilesController(IFilesHandler handler) { _handler = handler; }
public FilesApiController(IServiceScope scope) : base() { _filesHandler = scope.ServiceProvider.GetRequiredService <IFilesHandler>(); }
public GuildConfigController(ILogger <GuildConfigController> logger, IDatabase database, IOptions <InternalConfig> config, IIdentityManager identityManager, IDiscordAPIInterface discordInterface, IFilesHandler filesHandler) { this.logger = logger; this.database = database; this.config = config; this.identityManager = identityManager; this.discord = discordInterface; this.filesHandler = filesHandler; }
public FileController(ILogger <FileController> logger, IDatabase database, IOptions <InternalConfig> config, IIdentityManager identityManager, IFilesHandler filesHandler, IDiscordAnnouncer discordAnnouncer) { this.logger = logger; this.database = database; this.config = config; this.identityManager = identityManager; this.filesHandler = filesHandler; this.discordAnnouncer = discordAnnouncer; }
public FileUploadController(IFilesHandler filesHandler) { _filesHandler = filesHandler; }