title: Triggering WebJob Method Based on Message Property
body: <p>I have an Azure WebJobs project which handles a number of time-consuming tasks triggered by website actions. It works fine.</p>
  
  <p>But the mapping from message to method call uses magic strings:</p>
  
  <pre><code>public class SomeClass
  {        
      public async Task ProcessMessage(
          [ QueueTrigger( "%" + nameof( ContainerQueueConstants.FilteredVoterFiles ) + "%" ) ] AgencyOutreachMessage
              msg,
          TextWriter azureLogWriter
      )
      {
          PhaseNames.SetNames( "Exporting Data", "Job Completed" );
  
          await ExecuteFromMessage( msg, azureLogWriter, Launch );
      }
  }
  
  public class ContainerQueueConstants
  {
      public const string ImportFile = "import-file";
      public const string VoterTraits = "voter-traits";
      public const string Voter = "voter";
      public const string FilteredVoterFiles = "filtered-voter-files";
  }
  </code></pre>
  
  <p>I'd like to get away from using hard-coded strings for queue names. Ideally, I'd like to be able to route a message to a particular method based on the value of a property contained in the message. </p>
  
  <p>But I'm not sure if that's even possible, at least in the 1.1.x version of the WebJobs SDK.</p>
  
  <p>Suggestions or advice appreciated.</p>