title: Understanding the concept of Hexagonal Ports and Adapters with an example
body: <p>I am trying to understand what is meant by a Port and an adapter when talking about Hexagonal architectures.  I have read plenty of explanations tonight, however I have not found a code example.  Therefore I will devise one.  I understand a port to be an interface.  For example:</p>
  
  <pre><code>public interface IPerson
  {
     string GetName();
  }
  </code></pre>
  
  <p>and an Adapter to be a class that implements an interface:</p>
  
  <pre><code>public class Person : IPerson
  {
    //Implementation of GetName here
  }
  </code></pre>
  
  <p>I understand the concept of the Gang of four Adapter pattern.  However, I do not understand how this fits into DDD.</p>
  
  <p>It would really help me to see a simple code example in the context of DDD.</p>