Skip to content

Instantly share code, notes, and snippets.

@tulbox
tulbox / ConfigurableFilterProvider.cs
Created January 16, 2017 22:31 — forked from kcargile/ConfigurableFilterProvider.cs
Inject Castle Windsor Dependencies into ASP.NET Web API Filter C#
using System.Collections.Generic;
using System.Diagnostics;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
using Castle.Windsor;
using Algorythmic.Web.API.Filters;
namespace Algorythmic.Web.API.Windsor.Filters
{
var React = require('react');
var ReactAddons = require('react/addons');
var DiscountTable = require('./discount/Discount.jsx');
var ShippingTable = require('./shipping/Shipping.jsx');
var ProvinceTable = require('./province/Province.jsx');
(function() {
var discounts = document.getElementById('discount-table');
if (discounts !== null) {
React.render(<DiscountTable initialData={ {data : [], add: false, addRow: { Id: 0, Amount: 0, Quantity: 0 } } }