public MergeOrUploadHandler(VideoCollectionDataContext dataContext, ISearchConfiguration searchConfiguration) { _dataContext = dataContext; _searchIndexClient = new SearchIndexClient( searchConfiguration.SearchServiceName, searchConfiguration.IndexName, new SearchCredentials(searchConfiguration.ApiKey)); }
public static void Seed(VideoCollectionDataContext context) { //context.DigitalAssets.AddOrUpdate(x => x.Name, new DigitalAsset() //{ //}); context.SaveChanges(); }
public static void Seed(VideoCollectionDataContext context) { context.Roles.AddOrUpdate(x => x.Name, new Role() { Name = "[Video Collection Security Roles] System" }); context.SaveChanges(); }
public static void Seed(VideoCollectionDataContext context) { context.Videos.AddOrUpdate(x => x.Title, new Video() { Title = "RxJS and Angular 2", YouTubeVideoId = "xAEFTSMEgIQ", Rating = 0 }); context.SaveChanges(); }
public static void Seed(VideoCollectionDataContext context) { var systemRole = context.Roles.First(x => x.Name == "[Video Collection Security Roles] System"); var roles = new List <Role>(); roles.Add(systemRole); context.Users.AddOrUpdate(x => x.Username, new User() { Username = "******", Password = new EncryptionService().HashPassword("P@ssw0rd"), Roles = roles }); context.SaveChanges(); }
public AddOrUpdateAuthorAvatarHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public GetHTMLContentsHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public GetArticlesHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public RemoveAuthorHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public AddOrUpdateTenantHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public GetUserByUsernameHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public MergeOrUploadArticlesHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public AddOrUpdateDigitalAssetHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public static void Seed(VideoCollectionDataContext context) { context.SaveChanges(); }
public UploadDigitalAssetHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public GetDigitalAssetByIdHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public GetVideoBySlugHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public GetSiteMapHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public RemoveVideoArticleHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public AuthenticateHandler(VideoCollectionDataContext dataContext, IEncryptionService encryptionService) { _encryptionService = encryptionService; _dataContext = dataContext; }
public GetAuthorByIdHandler(VideoCollectionDataContext dataContext, ICache cache) { _dataContext = dataContext; _cache = cache; }
public GetClaimsForUserHandler(VideoCollectionDataContext dataContext) { _dataContext = dataContext; }