title: How should I Register a custom UserAccount with MembershipReboot.Owin?
body: <p>Has any one made a multitenant example with a custom useraccount using membershipreboot.owin ?</p>
  
  <p>I Have a hard time figuring out how I should configure the membership middleware when using a custom account. 
  Its not covered by the default examples. And I guess i'm not experienced enough with funky Funcs. Any help would be appreciated.</p>
  
  <p>Thx.</p>
  
  <p>The OwinExtentionMethods looks like :</p>
  
  <pre><code>     public static class MembershipRebootOwinExtensions
       {
          public static void UseMembershipReboot&lt;TAccount&gt;(
          this IAppBuilder app,
          Func&lt;IDictionary&lt;string, object&gt;, UserAccountService&lt;TAccount&gt;&gt;            userAccountServiceFactory,
          Func&lt;IDictionary&lt;string, object&gt;, AuthenticationService&lt;TAccount&gt;&gt; authenticationServiceFactory = null
          )
          where TAccount : UserAccount
          {
              app.Use&lt;MembershipRebootMiddleware&lt;TAccount&gt;&gt;(userAccountServiceFactory, authenticationServiceFactory);
              app.UseMembershipReboot();
          }
  
      public static void UseMembershipReboot&lt;TAccount&gt;(
          this IAppBuilder app,
          CookieAuthenticationOptions cookieOptions,
          Func&lt;IDictionary&lt;string, object&gt;, UserAccountService&lt;TAccount&gt;&gt; userAccountServiceFactory,
          Func&lt;IDictionary&lt;string, object&gt;, AuthenticationService&lt;TAccount&gt;&gt; authenticationServiceFactory = null
          )
          where TAccount : UserAccount
          {
              app.Use&lt;MembershipRebootMiddleware&lt;TAccount&gt;&gt;(userAccountServiceFactory, authenticationServiceFactory);
              app.UseMembershipReboot(cookieOptions);
          }
  </code></pre>
  
  <p>How would I fill in the two func's ?  </p>
  
  <pre><code>    Func&lt;IDictionary&lt;string, object&gt;, UserAccountService&lt;TAccount&gt;&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    Func&lt;IDictionary&lt;string, object&gt;, AuthenticationService&lt;TAccount&gt;&gt; 
  </code></pre>