title: NServiceBus - Difference between DefineEndpointName and app.config MessageEndpointMappings
body: <p>Would somebody be able to explain what the difference is between configuring the EndpointName in Configure.DefineEndpointName and specifying it in the app.config under MessageEndpointMappings?</p>
  
  <p>i.e.</p>
  
  <pre><code>.DefineEndpointName("Something.MessageQueue")
  </code></pre>
  
  <p>And</p>
  
  <pre><code> &lt;UnicastBusConfig&gt;
      &lt;MessageEndpointMappings&gt;
        &lt;add Assembly="Something.Messages" Endpoint="Something.MessageQueue" /&gt;
      &lt;/MessageEndpointMappings&gt;
    &lt;/UnicastBusConfig&gt;
  </code></pre>