/// <summary> /// /// </summary> /// <param name="builder"></param> /// <param name="mapSiteConfig"></param> /// <param name="branch"></param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">builder</exception> /// <exception cref="System.ArgumentNullException">MapSiteConfig</exception> /// <exception cref="System.ArgumentNullException">branch</exception> public static IAppBuilder MapSite(this IAppBuilder builder, MapSiteConfig mapSiteConfig, Action <IAppBuilder> branch) { builder.MustNotBeNull("builder"); mapSiteConfig.MustNotBeNull("MapSiteConfig"); branch.MustNotBeNull("branch"); return(MapSite(builder, mapSiteConfig, builder.BranchConfig(branch))); }
/// <summary> /// /// </summary> /// <param name="builder"></param> /// <param name="mapSiteConfig"></param> /// <param name="branch"></param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">builder</exception> /// <exception cref="System.ArgumentNullException">MapSiteConfig</exception> /// <exception cref="System.ArgumentNullException">branch</exception> public static IAppBuilder MapSite(this IAppBuilder builder, MapSiteConfig mapSiteConfig, AppFunc branch) { builder.MustNotBeNull("builder"); mapSiteConfig.MustNotBeNull("MapSiteConfig"); branch.MustNotBeNull("branch"); builder .UseOwin() .MapSite(mapSiteConfig, branch); return(builder); }
/// <summary> /// /// </summary> /// <param name="builder"></param> /// <param name="mapSiteConfig"></param> /// <param name="branch"></param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">builder</exception> /// <exception cref="System.ArgumentNullException">MapSiteConfig</exception> /// <exception cref="System.ArgumentNullException">branch</exception> public static IAppBuilder MapSite(this IAppBuilder builder, MapSiteConfig mapSiteConfig, Action<IAppBuilder> branch) { builder.MustNotBeNull("builder"); mapSiteConfig.MustNotBeNull("MapSiteConfig"); branch.MustNotBeNull("branch"); return MapSite(builder, mapSiteConfig, builder.BranchConfig(branch)); }
/// <summary> /// /// </summary> /// <param name="builder"></param> /// <param name="mapSiteConfig"></param> /// <param name="branch"></param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">builder</exception> /// <exception cref="System.ArgumentNullException">MapSiteConfig</exception> /// <exception cref="System.ArgumentNullException">branch</exception> public static IAppBuilder MapSite(this IAppBuilder builder, MapSiteConfig mapSiteConfig, AppFunc branch) { builder.MustNotBeNull("builder"); mapSiteConfig.MustNotBeNull("MapSiteConfig"); branch.MustNotBeNull("branch"); builder .UseOwin() .MapSite(mapSiteConfig, branch); return builder; }
/// <summary> /// /// </summary> /// <param name="builder"></param> /// <param name="mapSiteConfig"></param> /// <param name="branch"></param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">builder</exception> /// <exception cref="System.ArgumentNullException">MapSiteConfig</exception> /// <exception cref="System.ArgumentNullException">branch</exception> public static BuildFunc MapSite(this BuildFunc builder, MapSiteConfig mapSiteConfig, AppFunc branch) { builder.MustNotBeNull("builder"); mapSiteConfig.MustNotBeNull("MapSiteConfig"); branch.MustNotBeNull("branch"); return MapSite(builder, new[] {mapSiteConfig}, branch); }