public RepositoryWrapper(LocalizationRepository repo, Part partOverride, String abSegment = null)
 {
     InnerRepository = repo;
     PartOverride = partOverride;
     ABSegment = abSegment;
 }
Exemplo n.º 2
0
 public ManualConfigurationContext(LocalizationRepository repository, bool debugMode)
 {
     Repository = repository;
     DebugMode = debugMode;
 }
Exemplo n.º 3
0
 public AlwaysDebuggingContext(LocalizationRepository repository)
 {
     Repository = repository;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Provides Localization Helper.
 /// </summary>
 /// <param name="helper">Current HTML Helper</param>
 /// <param name="repository">Repository to draw localizations from</param>
 /// <param name="debug">Whether or not to allow debug mode</param>
 /// <param name="abSegment">Segment for AB testing (null for no ab testing)</param>
 /// <returns></returns>
 public static LocalizationHelper Local(this HtmlHelper helper, LocalizationRepository repository, bool debug, string abSegment = null)
 {
     return new LocalizationHelper(helper, debug, new RepositoryWrapper(repository, repository.DefaultPart, abSegment));
 }
Exemplo n.º 5
0
 public NeverDebuggingContext(LocalizationRepository repository)
 {
     Repository = repository;
 }