public static Task <T> LoadFromEmbeddedResourceAsync <T>(this IXamlService self, Assembly assembly, string path) { using (var stream = assembly.GetManifestResourceStream(path)) { if (stream == null) { throw new FileNotFoundException(); } return(self.LoadAsync <T>(stream)); } }
public S2StartupViewHarvester(IWebHostEnvironment environment, IXamlService xaml, IS2StartupService s2StartupService, ILogger <S2StartupViewHarvester> logger) { _environment = environment; _xaml = xaml; _s2StartupService = s2StartupService; this.Logger = logger; }
public ViewDataSynchronizer(IWebHostEnvironment environment, IShellFeaturesManager shellFeaturesManager, IDataImporter importer, IViewHarvester harvester, IClock clock, IRepository <MenuItemEntity> menuEntityRepo, IRepository <ViewEntity> viewRepo, IRepository <ActionEntity> actionRepo, IRepository <ViewFragmentEntity> viewFragmentRepo, IXamlService xaml, ILogger <ViewDataSynchronizer> logger) { _environment = environment; _shellFeaturesManager = shellFeaturesManager; _importer = importer; _harvester = harvester; _clock = clock; _menuEntityRepo = menuEntityRepo; _viewRepo = viewRepo; _actionRepo = actionRepo; _viewFragmentRepo = viewFragmentRepo; _xaml = xaml; this.Logger = logger; }
public ImageGeneratorService() { _iFolorService = new IFolorService(); _xamlService = new XamlService(); }
public static Task <T> LoadFromFileAsync <T>(this IXamlService self, string filePath) { using (var stream = File.OpenRead(filePath)) { return(self.LoadAsync <T>(stream)); } }
public static Task <T> LoadFromStringAsync <T>(this IXamlService self, string xmlStr) { return(self.LoadAsync <T>(new StringReader(xmlStr))); }
public S2StartupSeedHarvester(IWebHostEnvironment environment, IXamlService xaml, IS2StartupService s2StartupService) { _environment = environment; _xaml = xaml; _s2StartupService = s2StartupService; }