How do I add a parameter to an action filter in asp.net?
<p>I have the following filter attribute, and i can pass an array of strings to the attribute like this <code>[MyAttribute("string1", "string2")]</code>.</p>

<pre><code>public class MyAttribute : TypeFilterAttribute
{
    private readonly string[] _ids;

    public MyAttribute(params string[] ids) : base(typeof(MyAttributeImpl))
    {
        _ids = ids;
    }

    private class MyAttributeImpl : IActionFilter
    {
        private readonly ILogger _logger;

        public MyAttributeImpl(ILoggerFactory loggerFactory)
        {
            _logger = loggerFactory.CreateLogger&lt;MyAttribute&gt;();
        }

        public void OnActionExecuting(ActionExecutingContext context)
        {
            // HOW DO I ACCESS THE IDs VARIABLE HERE ???
        }

        public void OnActionExecuted(ActionExecutedContext context)
        {
        }
    }
}
</code></pre>

<p>How do i pass the string array <code>_ids</code> to the implementation of the action filter? Am i missing something really obvious!?</p>