title: Hw to pass arguments to my own Startup class?
body: <p>I'm trying to develop a web api self hosting app using OWIN.
  In my own XyzStartup class, I need an external argument: contentFolderPath.</p>
  
  <p>However, I didn't find a way to pass this argument. Here is my code below:</p>
  
  <pre><code>var contentFolderPath = this.TextBox.Text; // user input
  
  var startOptions = new StartOptions();
  using(WebApp.Start&lt;XyzStartup&gt;(startOptions)){
  
  }
  </code></pre>
  
  <p>My startup</p>
  
  <pre><code>public class XyzStartup
  {
       XyzStartup(string contentFolderPath) {  ...  }
  }
  </code></pre>
  
  <p>I noticed there is a StartOption class, but don't how to use it. Can I use it in my XyzStartup class?</p>
  
  <p>Thanks in advance!</p>
  
  <hr>
  
  <p>I finally find a way to do this:</p>
  
  <pre><code>var startOptions = new StartOptions();
  startOptions.Urls.Add('..some url ..');
  
  WebApp.Start(startOptions, (appBuilder)=&gt;{
      new XyzStartup(contentFolderPath).Configuration(appBuilder);
  }
  </code></pre>