public ObjectDataLayer(AdapterSettings settings) : base(settings) { _settings = settings; _widgetProvider = new WidgetProvider(); }
public ContentController(ContentManager contentManager, WidgetProvider widgetProvider, IServiceProvider serviceProvider, IHttpContextAccessor httpContextAccessor) { _contentManager = contentManager; _widgetProvider = widgetProvider; _serviceProvider = serviceProvider; _httpContextAccessor = httpContextAccessor; }
void Process() { var stationIds = GetRequestedStationIds(); if (stationIds.Count() == 0) { BadRequest(); return; } var widget = _widgetProvider.LoadWidget(new Guid(this.Guid)); var supportedStations = GetSupportedStations(widget); foreach (var stationId in stationIds) { var station = supportedStations.FirstOrDefault(s => s.Id.Equals(stationId)); if (station == null) { Forbid(); return; } if (!WidgetProvider.WidgetCompatibleToStation(widget, station)) { BadRequest(); return; } } }
public AnnouncementManager ( IContextAccessor <UserContext> userContextAccessor, ContentManager contentManger, WidgetProvider widgetProvider, AnnouncementDbContext announcementDbContext ) { _userContextAccessor = userContextAccessor; _contentManager = contentManger; _widgetProvider = widgetProvider; _announcementDbContext = announcementDbContext; }
public BlogManager ( IContextAccessor <UserContext> userContextAccessor, ContentManager contentManger, WidgetProvider widgetProvider, BlogDbContext blogDbContext ) { _userContextAccessor = userContextAccessor; _contentManager = contentManger; _widgetProvider = widgetProvider; _blogDbContext = blogDbContext; }
public ContentTreeBuilder ( ConnectDbContext dbContext, WidgetProvider widgetProvider, ContentTree contentTree ) { _dbContext = dbContext; _widgetProvider = widgetProvider; _targetTree = contentTree; if (_targetTree.ContentNodes == null) { _targetTree.ContentNodes = new List <ContentNode>(); } }
public SiteTemplateExporter ( ConnectDbContext connectDb, ConnectCoreOptions coreOptions, ContentManager contentManager, WidgetProvider widgetProvider, SiteManager siteManager, SiteTemplateManager templateManager, PageMasterManager masterPageManager, PageManager pageManger, DbLogService logger ) { _connectDb = connectDb; _coreOptions = coreOptions; _contentManager = contentManager; _siteManager = siteManager; _widgetProvider = widgetProvider; _templateManager = templateManager; _masterPageManager = masterPageManager; _pageManager = pageManger; _logger = logger; _exportRootFolder = Path.Combine(_coreOptions.FileSystemRoot, _coreOptions.TemplateExportPath.Replace("/", @"\")); _masterPageMap = new Dictionary <string, SiteTemplateMasterPage>(); _pageMap = new Dictionary <string, SiteTemplatePage>(); _jsonSettings = new JsonSerializerSettings { Formatting = Formatting.Indented, ContractResolver = new CamelCasePropertyNamesContractResolver(), ReferenceLoopHandling = ReferenceLoopHandling.Ignore, NullValueHandling = NullValueHandling.Ignore, }; }
public WidgetService() { _widgetProvider = new WidgetProvider(); }
public ContentManager(ConnectDbContext connectDb, WidgetProvider widgetProvider) { _connectDb = connectDb; _widgetProvider = widgetProvider; }
public HomeController(WidgetProvider widgetProvider, UserManager <User> userManager) { _widgetProvider = widgetProvider; _userManager = userManager; }
public WidgetForm(WidgetProvider widgetProvider) { _widgetProvider = widgetProvider; }
void Prepare(ActionExecutingContext context) { _context = context; _widgetProvider = (WidgetProvider)_context.HttpContext.RequestServices.GetService(typeof(WidgetProvider)); }
public ContentEmbedded(ConnectDbContext dbContext, WidgetProvider widgetProvider, ContentManager contentManager) { _dbContext = dbContext; _widgetProvider = widgetProvider; _contentManager = contentManager; }