コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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;
 }