コード例 #1
0
 /// <summary>Constructor.</summary>
 /// <param name="dataService">  The data service. </param>
 public ResourceTest(ILocalizationDataService dataService) : base(dataService)
 {
     if (dataService.CanMigrate())
     {
         dataService.Migrate();
     }
 }
 /// <summary>Constructor.</summary>
 /// <param name="dataService">  The data service. </param>
 public RepositoryExportSourceReader(ILocalizationDataService dataService)
 {
     _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService));
 }
コード例 #3
0
 /// <summary>   Constructor. </summary>
 /// <param name="dataService">  The data service. </param>
 public ResourceSynchronizer(ILocalizationDataService dataService)
 {
     _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService));
 }
コード例 #4
0
 /// <summary>   Constructor. </summary>
 /// <param name="localizationDataService">  The localization data service. </param>
 /// <param name="localizer">                The localizer. </param>
 public LocalizationController(ILocalizationDataService localizationDataService, IStringLocalizer <Resources.Controllers.LocalizationResource> localizer)
 {
     _localizationDataService = localizationDataService;
     _localizer = localizer;
 }
コード例 #5
0
 /// <summary>	Specialised constructor for use only by derived class. </summary>
 /// <param name="dataService">	The data service. </param>
 protected DataServiceTest(ILocalizationDataService dataService)
 {
     DataService = dataService;
 }
コード例 #6
0
 /// <summary>   Constructor. </summary>
 /// <param name="dataService">  The data service. </param>
 public GetTranslationHandler(ILocalizationDataService dataService)
 {
     _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService));
 }
コード例 #7
0
 /// <summary>   Constructor. </summary>
 /// <param name="dataService">  The data service. </param>
 public GetAllResourcesHandler(ILocalizationDataService dataService)
 {
     _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService));
 }