예제 #1
0
 void ThrowIfActionMissing(string actionName)
 {
     if (!actions.ContainsKey(actionName))
     {
         throw new WitException($"unknown action {actionName}");
     }
 }
예제 #2
0
        WitActions ValidateActions(WitActions actions)
        {
            if (!actions.ContainsKey("send"))
            {
                Console.WriteLine("The 'send' action is missing.");
            }

            return(actions);
        }