title: How to register help/reset/settings Scorable (not proactive) in Azure Functions Bot?
body: <p>There're multiple tutorials on how to implement global message handler that allows reacting on special words anywhere in one fashion without touching dialogs' code. For example, "start over" should result in full reset regardless of current position in conversation flow.</p>
  
  <p>They're quite similar and consist of three easy steps:</p>
  
  <ol>
  <li>Create a subclass of ScorableBase. (Done.)</li>
  <li>"Wrap" it into Autofac Module. (Done.)</li>
  <li><strong>Register the Module in Global.asax.cs</strong>. (How in Azure Functions?)</li>
  </ol>
  
  <p>I can't figure out how to make the last step in Azure Functions bot's code. <a href="https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-scorable-dialogs#register-the-module" rel="nofollow noreferrer">According to tutorials it should be done in this fashion:</a></p>
  
  <pre><code>public class WebApiApplication : System.Web.HttpApplication
  {
      protected void Application_Start()
      {
          this.RegisterBotModules();
          GlobalConfiguration.Configure(WebApiConfig.Register);
      }
  
      private void RegisterBotModules()
      {
          var builder = new ContainerBuilder();
          builder.RegisterModule(new ReflectionSurrogateModule());
  
          //Register the module within the Conversation container
          builder.RegisterModule&lt;GlobalMessageHandlersBotModule&gt;();
  
          builder.Update(Conversation.Container);
      }
  }
  </code></pre>
  
  <p>But Azure Functions bot has <strong>run.csx</strong> instead of <strong>Global.asax.cs</strong> and it doesn't utilize neither <code>HttpApplication</code> nor <code>ContainerBuilder</code> nor <code>GlobalConfuration</code>. And overall it has no even remotely similar code to the main initialization code of a Web App Bot.</p>
  
  <p>How can I register the module from step 2 or otherwise implement "start over" feature?</p>