Hi Morten,
Thanks for contacting Syncfusion support.
Please find the response in below:
Query: “I'm having trouble figuring out where to put/ how to implement the code sample 17 on page 33.”
You need to add the code sample 17 in Application_Start method in Global.asax file. In code example 17 we have explained just to refer. We explained detailly in following code examples.
Please refer to the below code snippet:
<code>
public class Global : HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
TenantsConfiguration.DefaultTenant = "abc.com";
TenantsConfiguration.TenantIdentifier =TenantsConfiguration.Identifiers.HostHeader;
}
}
</code> |
<code>
public static class TenantsConfiguration
{
public static String DefaultTenant { get; set; }
//rest goes here
}
</code> |
Query : “Is it in the TenantsConfiguration class, in the constructor, a method or what??”
TenantsConfiguration is a class. It contains the properties and methods for multitenant.
Query: “I'm only implementing the HostHeader and QueryString TenantIdentifierStrategy”
DefaultTenant member is added in code example 21. Please follow the code example one by one
Regards,
Karthikeyan V.