コード例 #1
0
 private void AddFeedbackCommand(Step engine)
 {
     engine.AddCommandWithParameter("feedback", LocalizedStrings.CommonEngine_EnterFeedbackText)
     .ForEach(step => step.Execute(context =>
     {
         string feedback = context[0];
         RaiseFeedback(new FeedbackEventArgs(feedback));
         context.ReplyEcho(LocalizedStrings.CommonEngine_FeedbackAccepted);
     }));
 }