public KickCommand(IUserManager userManager, IWebhookService webhookService, IConfiguration configuration, IStringLocalizer stringLocalizer, IServiceProvider serviceProvider) : base(serviceProvider) { m_UserManager = userManager; m_StringLocalizer = stringLocalizer; m_Configuration = configuration; m_WebhookService = webhookService; }
public UnBanCommand(IMySqlDatabase database, IWebhookService webhookService, IConfiguration configuration, IStringLocalizer stringLocalizer, IServiceProvider serviceProvider) : base(serviceProvider) { m_MySqlDatabase = database; m_StringLocalizer = stringLocalizer; m_Configuration = configuration; m_WebhookService = webhookService; }
/// <summary> /// Constructor that uses dependency injection. /// </summary> /// <param name="sqlDbContext">The context to inject.</param> /// <param name="offerService">A service to inject.</param> /// <param name="armTemplateService">A service to inject.</param> /// <param name="logger">The logger.</param> public PlanService(ISqlDbContext sqlDbContext, IOfferService offerService, IArmTemplateService armTemplateService, IWebhookService webhookService, ILogger <PlanService> logger) { _context = sqlDbContext ?? throw new ArgumentNullException(nameof(sqlDbContext)); _offerService = offerService ?? throw new ArgumentNullException(nameof(offerService)); _armTemplateService = armTemplateService ?? throw new ArgumentNullException(nameof(armTemplateService)); _webhookService = webhookService ?? throw new ArgumentNullException(nameof(webhookService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public BanCommand(IConfiguration configuration, IWebhookService webhookService, IUserManager userManager, IMySqlDatabase mySqlDatabase, IStringLocalizer stringLocalizer, IServiceProvider serviceProvider) : base(serviceProvider) { m_Configuration = configuration; m_WebhookService = webhookService; m_UserManager = userManager; m_StringLocalizer = stringLocalizer; m_MySqlDatabase = mySqlDatabase; }
public DataSyncProcessor(IWebhookService webhookService, ILoggingService loggingService, IBladeAndSoulService bladeAndSoulService, IPowerService powerService) { _webhookService = webhookService; _loggingService = loggingService; _bladeAndSoulService = bladeAndSoulService; _powerService = powerService; _lock = new SemaphoreSlim(1); }
public UserSerivice(IOptions <AppSettings> appSettings, IGroupContext groupContext, IDepartmentContext departmentContext, IWebhookService webhookService, ILogTable logTable, IAadCollector aadCollector) { _appSettings = appSettings.Value; _departmentContext = departmentContext; _groupContext = groupContext; _webhookService = webhookService; _logTable = logTable; _aadCollector = aadCollector; }
/// <summary> /// Initializes a new instance of the <see cref="SubscriptionValidation"/> class. /// </summary> public SubscriptionValidation( IWebhookService webhookService, IOptions <PlatformSettings> eventsConfig, IValidateSubscriptionService validateSubscriptionService) { _platformSettings = eventsConfig.Value; _webhookService = webhookService; _validateSubscriptionService = validateSubscriptionService; }
public WebhookController( ILogger <WebhookController> logger, IOptions <WebhookConfig> webhookConfig, IWebhookService webhookService) { _logger = logger; _webhookConfig = webhookConfig.Value; _webhookService = webhookService; }
public WebhooksController(ILogger <WebhooksController> logger, Data.ApplicationDbContext db, IWebhookService hooks, IUserContextService userCtx) { _db = db; _logger = logger; _hooks = hooks; _userCtx = userCtx; }
public FileAssemblerWorker(IConfiguration configuration , FileAssemblerServiceFactory fileAssemblerServiceFactory , IFileRepository fileRepository , IWebhookService webhookService , IFileConflictService fileConflictService) { _fileAssemblerServiceFactory = fileAssemblerServiceFactory; _fileRepository = fileRepository; _webhookService = webhookService; _triggerInterval = int.Parse(configuration[Constants.FileAssemblyTriggerInterval]); _amountOfConcurrentJobs = int.Parse(configuration[Constants.ConcurrentFileAssemblyJobs]); _fileConflictService = fileConflictService; }
public WebhooksModule(IWebhookService webhookService) : base("webhooks", requireAuthentication: false) { Post("{endpoint}", async args => { using (var reader = new StreamReader(Request.Body)) { var body = await reader.ReadToEndAsync(); await webhookService.ExecuteAsync(args.endpoint, Request.Query["trigger"], body, Request.Query["token"]); } return(HttpStatusCode.OK); }); }
public FileDisassemblerWorker(IConfiguration configuration, WorkerQueueContainer workerQueueContainer , FileDisassemblerServiceFactory fileProcessServiceFactory , TransmissionService transmissionService , IRecipientRepository recipientRepository , IWebhookService webhookService , IFileRepository fileRepository) { _amountOfConcurrentJobs = int.Parse(configuration[Constants.ConcurrentFileDisassemblyJobs]); _workerQueueContainer = workerQueueContainer; _fileProcessServiceFactory = fileProcessServiceFactory; _transmissionService = transmissionService; _recipientRepository = recipientRepository; _webhookService = webhookService; _fileRepository = fileRepository; }
public ConsoleApplication( ILogger <ConsoleApplication> logger, IOptions <AppSettings> config, ITwitchAPI twitchApi, IApiSettings apiSettings, IWebhookService webhookService ) { _logger = logger; _config = config; _twitchApi = twitchApi; _apiSettings = apiSettings; _webhookService = webhookService; _twitchMonitor = new LiveStreamMonitorService(_twitchApi, config.Value.TwitchApiCheckIntervalSeconds); _token = new CancellationToken(); }
private async Task GetAddressExpiredWebhookTest(AdminKey adminKey, IWebhookService getAddressExpiredWebhook) { var addResult = await getAddressExpiredWebhook.Add("https://enow375xiqy9k.x.pipedream.net/"); Assert.IsTrue(addResult.IsSuccess); var getResult = await getAddressExpiredWebhook.Get(addResult.SuccessfulResult.Id); Assert.IsTrue(getResult.IsSuccess); var listResult = await getAddressExpiredWebhook.List(); Assert.IsTrue(listResult.IsSuccess && listResult.SuccessfulResult.Webhooks.Any()); var testResult = await getAddressExpiredWebhook.Test(); Assert.IsTrue(testResult.IsSuccess); var removeResult = await getAddressExpiredWebhook.Remove(addResult.SuccessfulResult.Id); Assert.IsTrue(removeResult.IsSuccess); }
public OrdersEventHandler(IWebhookService webhookService) { _webhookService = webhookService; }
/// <summary> /// Event-type-specific processing of the event /// </summary> /// <param name="webhookService"></param> public abstract Task <IActionResult> ProcessEvent(IWebhookService webhookService);
public WebhookController(IWebhookService webhookService) { _webhookService = webhookService; }
public GitHubController(IWebhookService webhookService) { _webhookService = webhookService; }
public KikService(IWebhookService webhookService, IWebhookMessageHandlerService messageHandlerService) { _webhookService = webhookService; }
public WorkerStartup(IDatabase database, IWebhookService webhookService) { _database = database; _webhookService = webhookService; }
public Webhook(IWebhookService service) { _service = service; }
public OrdersController(OrderRepository repository, IWebhookService webhookService) { _repository = repository; _webhookService = webhookService; }
public WebhookController(IWebhookRepository repository, IWebhookService webhookService) { _repository = repository; }
/// <summary> /// Initializes a new instance of the <see cref="EventsOutbound"/> class. /// </summary> public EventsOutbound(IWebhookService webhookService) { _webhookService = webhookService; }
public WebhooksController(IWebhookService webhookService, IClientConfigOptions clientConfigOptions) { _webhookService = webhookService ?? throw new ArgumentNullException(nameof(webhookService)); _clientConfigOptions = clientConfigOptions ?? throw new ArgumentNullException(nameof(clientConfigOptions)); }
public override async Task <IActionResult> ProcessEvent(IWebhookService webhookService) { return(await webhookService.ProcessEmailChangedEvent(this)); }
/// <summary> /// Constructor /// </summary> /// <param name="webhookService"></param> /// <param name="membershipService"></param> public WebhooksController(IWebhookService webhookService, IMembershipService membershipService) { this.webhookService = webhookService; this.membershipService = membershipService; }
public HTTPTrigger(IWebhookService webhookService) { _webhookService = webhookService; }
public TelldusEventService(ITelldusCoreService telldusCoreService, IWebhookService webHookService, ILogger <TelldusEventService> logger) { this.logger = logger; this.webHookService = webHookService; this.telldusCoreService = telldusCoreService; }
/// <summary> /// Initializes a new instance of the <see cref="MobilePayController"/> class. /// </summary> public MobilePayController(IPurchaseService purchaseService, IWebhookService webhookService, MobilePaySettingsV2 mobilePaySettings) { _purchaseService = purchaseService; _webhookService = webhookService; _mobilePaySettings = mobilePaySettings; }