Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Doug Bunting e79fd8a8d7 Smaller removals and updates to focus this repo on ASP.NET WebHooks
- update all references to WebHooks.sln then remove that file
- update README.md and change version to 1.3.0-preview1
2018-01-19 16:09:36 -08:00
Doug Bunting c9f89dcc8b `msg` -> `message`
- as discussed in https://github.com/aspnet/WebHooks/pull/210#discussion_r158419203
- `message` -> `queueMessage` where main change caused a conflict
- also
  - `ack` -> `success`
  - `asm[s]` -> `assembly` / `assemblies`
  - `cnt` -> `i` except in 2 places where `count` was better
    - `count` -> `data` first in one of those cases
  - `combo` -> `combinedBytes`
  - `invalidFiltersMsg` -> `invalidFiltersMessage`
  - `se` -> `storageException`
- leave `config` alone; exposed publicly e.g. `Microsoft.AspNet.WebHooks.Config.WebHooksConfig`

nits: accept lots of VS suggestions
- more `var` especially
2017-12-22 18:49:36 -08:00
Doug Bunting d03e1d1bda Update to newer tooling
- move to MSBuild v15.0
- move to StyleCop.MSBuild v5.0.0
  - stable release that supports C#6, not just `nameof(...)`
- move test output path beside, rather than under, regular output path
  - workaround NuGet/Home#6001
  - `\$(Configuration)\Test` -> `\Test\$(Configuration)`
  - quiets builds down significantly
- add AppVeyor configuration and status badge
- disable Travis builds for now
- ignore launchSettings.json files
2017-10-09 12:38:47 -07:00
Henrik Frystyk Nielsen b10c5b1d8d Changed to consistent use of nameof(...) 2016-07-11 20:39:45 -07:00
Henrik Frystyk Nielsen fdc6a7fa05 Updated Stripe WebHook handler to support handling WebHook data without going back to Stripe to verify the WebHook data. This mode can be enabled either by setting the 'MS_WebHookStripeDirect' application setting or by using the initializer:
config.InitializeReceiveStripeDirectWebHooks();

When using this mode, the WebHook URI must have a scheme of 'https' and contain a 'code' query parameter with a value between 32 and 64 characters, for example:

  http://<host>/api/webhooks/incoming/stripe?code=83699ec7c1d794c0c780e49a5c72972590571fd8

The code must match the value set in the 'MS_WebHookReceiverSecret_Stripe' application setting, for example:

    <add key="MS_WebHookReceiverSecret_Stripe" value="83699ec7c1d794c0c780e49a5c72972590571fd8" />

Henrik
2016-07-11 11:15:38 -07:00
Henrik Frystyk Nielsen 39558cd49f Send a message to default logger if WebHooks have not been initialized. This will make it easier to diagnose problems where WebHooks have not been initialized correctly. 2016-05-22 10:42:50 -07:00
Henrik Frystyk Nielsen 3ae18e675e Work around Ninject dependency injection which creates an empty SettingsDictionary even if that has not been registered with the resolver. Now we check that the dictionary isn't empty and if so pick the default initialized instance. Thanks to @andredublin for reporting! 2016-04-19 09:57:00 -07:00
Henrik Frystyk Nielsen 2a746403be Renamed SettingsProvider class to DefaultSettingsProvider in order not to conflict with System.Configuration.SettingsProvider. 2016-01-29 10:15:54 -08:00
Brian Weeteling 603c3b1505 Add Stripe Sample Project
Add MS_WebHookStripeInTestMode to execute custom StripeWebHookHandlers for test events ('evt_00000000000000')
Add StripeEvent and StripeEventData classes
2016-01-27 16:21:43 -08:00
Henrik Frystyk Nielsen 8c452662ec Added abstraction for making it simple to control how WebHooks are sent. Now it is easy to enqueue messages into something like an Azure Storage Queue and also to control the format of what the actual WebHooks messages look like. This means that if you want the message format to be different then it's now easy to do.
Added support for sending WebHooks directly to an Azure Storage Queue and also a mechanism for dequeing messages from the queue and then send out the WebHooks as normal. That allows for implementing highly scalable systems where the outgoing WebHooks are persisted in a queue and then can be sent from any number of queue client that poll for messages as they become available.
2015-12-30 20:46:39 -08:00
Henrik Frystyk Nielsen 85262f6344 Updated test settings to match inter-dependencies. 2015-09-26 12:32:31 -07:00
Henrik Frystyk Nielsen 6608cd0f9f Tweaked test parallelism 2015-09-25 09:36:11 -07:00
Henrik Frystyk Nielsen 499d5b88c2 Added support for receiving Salesforce Outbound SOAP Messages through the WebHooks receiver infra. 2015-09-04 17:15:10 -07:00
Henrik Frystyk Nielsen 34cf5965fd Enabled support for custom WebHooks to contain more than one notification. This change modifies the wire format to allow multiple notifications -- each with their own action. A Webhook can hence receive multiple notifications within a single HTTP request. Also updated submitting notifications to allow for multiple notifications to be sent. 2015-08-31 06:09:31 -07:00
Jacques Eloff 375b4540ab Move package build target to a separate project so that we can override the versioning similar to how it's overridden for assemblies
Renaming WebStack to WebHooks so that we can avoid confusion and be
consistent
2015-08-25 09:57:40 -07:00
Henrik Frystyk Nielsen 6d443e65e7 * Moved common code parameter comparison to WebHooksReceiver base class.
* Introduced time consistent string comparer for comparing secrets.
* Fixed issue handling 'application/xyz-json' instead of 'application/xyz+json'.
* Fixed grammar issues in doc comments
2015-08-15 07:15:12 -07:00
Henrik Frystyk Nielsen 70e86276ef Removed obsolete references to System.Runtime.
Updated XUnit VS runner to 2.01
2015-08-13 08:23:58 -07:00
Henrik Frystyk Nielsen a232aad521 Moved to build-in TheoryData attributes instead of old ones.
Added a few more tests.
2015-08-11 03:38:51 -07:00
Henrik Frystyk Nielsen 4cabd08874 Initial version 2015-07-30 18:51:20 -07:00