/// <summary> /// Creates an implementation of an ActionFilter. /// </summary> /// <param name="typeOfControllerFilter">The type that has the Extensibility methods</param> public OnResponseFilter(Type typeOfControllerFilter) { if (typeOfControllerFilter != null) { filterImpl = (AbstractFilter)Activator.CreateInstance(typeOfControllerFilter); } }
/// <summary> /// The type that has the OnRequest method /// </summary> public OnRequestFilter(Type typeOfControllerFilter, string ssKey, string serviceName) { if (typeOfControllerFilter != null) { filterImpl = (AbstractFilter)Activator.CreateInstance(typeOfControllerFilter); } this.ssKey = ssKey; this.serviceName = serviceName; }