public RazorLightDependencyBuilder UseNetFrameworkLegacyFix()
        {
            _services.RemoveAll <IAssemblyDirectoryFormatter>();
            IAssemblyDirectoryFormatter formatter = new LegacyFixAssemblyDirectoryFormatter();

            _services.AddSingleton <IAssemblyDirectoryFormatter>(formatter);
            return(this);
        }
Esempio n. 2
0
        public RazorLightDependencyBuilder UseNetFrameworkLegacyFix()
        {
            _services.RemoveAll <IAssemblyDirectoryFormatter>();
            IAssemblyDirectoryFormatter formatter = new LegacyFixAssemblyDirectoryFormatter();

            // ReSharper disable once RedundantTypeArgumentsOfMethod
            _services.AddSingleton <IAssemblyDirectoryFormatter>(formatter);
            return(this);
        }