示例#1
0
 public static void ConfigureOperation <T>(this IAppHost appHost, Action <Operation> configure)
 {
     appHost.ConfigureOperations(op => {
         if (op.RequestType != typeof(T))
         {
             return;
         }
         configure(op);
     });
 }