/// <summary> /// Initializes a new instance of the <see cref="ActionMessageHandler"/> class. /// </summary> /// <param name="host">The host.</param> /// <param name="target">The target.</param> public ActionMessageHandler(IActionHost host, object target) { _weakTarget = new WeakReference <object>(target); _host = host; _host.SelectMany(x => x.Filters.HandlerAware) .Union(_host.Filters.HandlerAware) .Apply(x => x.MakeAwareOf(this)); }
/// <summary> /// Initializes a new instance of the <see cref="ActionMessageHandler"/> class. /// </summary> /// <param name="host">The host.</param> /// <param name="target">The target.</param> public ActionMessageHandler(IActionHost host, object target) { _weakTarget = new WeakReference<object>(target); _host = host; _host.SelectMany(x => x.Filters.HandlerAware) .Union(_host.Filters.HandlerAware) .Apply(x => x.MakeAwareOf(this)); }