예제 #1
0
 internal static TransportRuleAction[] CreateAllAvailableActions(TypeMapping[] mappings, IConfigDataProvider session)
 {
     TransportRuleAction[] array = new TransportRuleAction[mappings.Length];
     for (int i = 0; i < mappings.Length; i++)
     {
         array[i] = TransportRuleAction.InternalCreateAction(mappings[i].Type, mappings, session);
     }
     return(array);
 }
예제 #2
0
 internal static TransportRuleAction CreateAction(TypeMapping[] mappings, string name, IConfigDataProvider session)
 {
     foreach (TypeMapping typeMapping in mappings)
     {
         if (name.Equals(typeMapping.Name, StringComparison.OrdinalIgnoreCase))
         {
             return(TransportRuleAction.InternalCreateAction(typeMapping.Type, mappings, session));
         }
     }
     return(null);
 }