Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 /// <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));
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
        public DataSyncProcessor(IWebhookService webhookService, ILoggingService loggingService, IBladeAndSoulService bladeAndSoulService, IPowerService powerService)
        {
            _webhookService      = webhookService;
            _loggingService      = loggingService;
            _bladeAndSoulService = bladeAndSoulService;
            _powerService        = powerService;

            _lock = new SemaphoreSlim(1);
        }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
0
 /// <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;
 }
Ejemplo n.º 9
0
 public WebhooksController(ILogger <WebhooksController> logger, Data.ApplicationDbContext db,
                           IWebhookService hooks,
                           IUserContextService userCtx)
 {
     _db      = db;
     _logger  = logger;
     _hooks   = hooks;
     _userCtx = userCtx;
 }
Ejemplo n.º 10
0
 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);
            });
        }
Ejemplo n.º 12
0
 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;
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Event-type-specific processing of the event
 /// </summary>
 /// <param name="webhookService"></param>
 public abstract Task <IActionResult> ProcessEvent(IWebhookService webhookService);
Ejemplo n.º 17
0
 public WebhookController(IWebhookService webhookService)
 {
     _webhookService = webhookService;
 }
Ejemplo n.º 18
0
 public GitHubController(IWebhookService webhookService)
 {
     _webhookService = webhookService;
 }
Ejemplo n.º 19
0
 public KikService(IWebhookService webhookService, IWebhookMessageHandlerService messageHandlerService)
 {
     _webhookService = webhookService;
 }
Ejemplo n.º 20
0
 public WorkerStartup(IDatabase database, IWebhookService webhookService)
 {
     _database       = database;
     _webhookService = webhookService;
 }
Ejemplo n.º 21
0
 public Webhook(IWebhookService service)
 {
     _service = service;
 }
Ejemplo n.º 22
0
 public OrdersController(OrderRepository repository, IWebhookService webhookService)
 {
     _repository     = repository;
     _webhookService = webhookService;
 }
 public WebhookController(IWebhookRepository repository, IWebhookService webhookService)
 {
     _repository = repository;
 }
Ejemplo n.º 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventsOutbound"/> class.
 /// </summary>
 public EventsOutbound(IWebhookService webhookService)
 {
     _webhookService = webhookService;
 }
Ejemplo n.º 25
0
 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));
 }
Ejemplo n.º 27
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="webhookService"></param>
 /// <param name="membershipService"></param>
 public WebhooksController(IWebhookService webhookService, IMembershipService membershipService)
 {
     this.webhookService    = webhookService;
     this.membershipService = membershipService;
 }
Ejemplo n.º 28
0
 public HTTPTrigger(IWebhookService webhookService)
 {
     _webhookService = webhookService;
 }
Ejemplo n.º 29
0
 public TelldusEventService(ITelldusCoreService telldusCoreService, IWebhookService webHookService, ILogger <TelldusEventService> logger)
 {
     this.logger             = logger;
     this.webHookService     = webHookService;
     this.telldusCoreService = telldusCoreService;
 }
Ejemplo n.º 30
0
 /// <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;
 }