コード例 #1
0
        /// <summary>
        /// Adds tenant level MVC services and configuration.
        /// </summary>
        public static OrchardCoreBuilder AddMvc(this OrchardCoreBuilder builder)
        {
            builder.ConfigureServices(collection =>
            {
                // Allows a tenant to add its own route endpoint schemes for link generation.
                collection.AddSingleton <IEndpointAddressScheme <RouteValuesAddress>, ShellRouteValuesAddressScheme>();
            },
                                      // Need to be registered last.
                                      order: int.MaxValue - 100);

            return(builder.RegisterStartup <Startup>());
        }
コード例 #2
0
 public static OrchardCoreBuilder AddSpa(this OrchardCoreBuilder builder)
 {
     return(builder.RegisterStartup <Startup>());
 }