This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
using ServiceStack.Web; | |
using ServiceStack.Data; | |
using ServiceStack.Auth; | |
using ServiceStack.Configuration; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureAuthRepository))] | |
namespace MyApp | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
using ServiceStack.Web; | |
using ServiceStack.Data; | |
using ServiceStack.Auth; | |
using ServiceStack.Configuration; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureAuthRepository))] | |
namespace MyApp | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using ServiceStack; | |
using ServiceStack.Auth; | |
using ServiceStack.FluentValidation; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureAuth))] | |
namespace MyApp | |
{ | |
// Add any additional metadata properties you want to store in the Users Typed Session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[assembly: HostingStartup(typeof(MyApp.ConfigureOpenApi))] | |
namespace MyApp; | |
public class ConfigureOpenApi : IHostingStartup | |
{ | |
public void Configure(IWebHostBuilder builder) => builder | |
.ConfigureServices((context, services) => { | |
if (context.HostingEnvironment.IsDevelopment()) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
using ServiceStack.Data; | |
using ServiceStack.Caching; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureValidation))] | |
namespace MyApp; | |
public class ConfigureValidation : IHostingStartup | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
using ServiceStack.Validation; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureValidation))] | |
namespace MyApp; | |
public class ConfigureValidation : IHostingStartup | |
{ | |
public void Configure(IWebHostBuilder builder) => builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
using ServiceStack.DataAnnotations; | |
using ServiceStack.Host; | |
using ServiceStack.Model; | |
using ServiceStack.Text; | |
using ServiceStack.Web; | |
[assembly: HostingStartup(typeof(MyApp.ConfigurePostman))] | |
namespace MyApp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureServerEvents))] | |
namespace MyApp; | |
public class ConfigureServerEvents : IHostingStartup | |
{ | |
public void Configure(IWebHostBuilder builder) => builder | |
.ConfigureServices(services => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
using ServiceStack.Api.OpenApi; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureOpenApi))] | |
namespace MyApp; | |
public class ConfigureOpenApi : IHostingStartup | |
{ | |
public void Configure(IWebHostBuilder builder) => builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureProfiling))] | |
namespace MyApp; | |
public class ConfigureProfiling : IHostingStartup | |
{ | |
public void Configure(IWebHostBuilder builder) => builder | |
.ConfigureServices((context, services) => { |