This file contains hidden or 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 System; | |
using Microsoft.Extensions.DependencyInjection; | |
using ServiceStack; | |
using ServiceStack.Auth; | |
using ServiceStack.Configuration; | |
using ServiceStack.Authentication.MongoDb; | |
using MongoDB.Driver; | |
using ServiceStack.Web; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureAuthRepository))] |
This file contains hidden or 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.Auth; | |
using ServiceStack.Configuration; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureAuthRepository))] | |
namespace MyApp | |
{ | |
// Custom User Table with extended Metadata properties |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using Microsoft.Extensions.DependencyInjection; | |
using ServiceStack; | |
using ServiceStack.Web; | |
using ServiceStack.Auth; | |
using ServiceStack.Configuration; | |
using Marten; | |
using ServiceStack.Authentication.Marten; | |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 MyApp.Migrations; | |
using ServiceStack; | |
using ServiceStack.Data; | |
using ServiceStack.OrmLite; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureDbMigrations))] | |
namespace MyApp; | |
// Code-First DB Migrations: https://docs.servicestack.net/ormlite/db-migrations |
This file contains hidden or 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.AspNetCore.Identity; | |
using Microsoft.EntityFrameworkCore; | |
using MyApp.Data; | |
using MyApp.Migrations; | |
using MyApp.ServiceModel; | |
using ServiceStack; | |
using ServiceStack.Data; | |
using ServiceStack.OrmLite; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureDbMigrations))] |
This file contains hidden or 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.Redis; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureRedis))] | |
namespace MyApp; | |
public class ConfigureRedis : IHostingStartup | |
{ | |
public void Configure(IWebHostBuilder builder) => builder |
This file contains hidden or 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.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using ServiceStack; | |
using ServiceStack.DataAnnotations; | |
using Raven.Client.Documents; | |
[assembly: HostingStartup(typeof(MyApp.ConfigureRavenDb))] | |
namespace MyApp | |
{ |