コード例 #1
0
        public RazorLightDependencyBuilder UseNetFrameworkLegacyFix()
        {
            _services.RemoveAll <IAssemblyDirectoryFormatter>();
            IAssemblyDirectoryFormatter formatter = new LegacyFixAssemblyDirectoryFormatter();

            _services.AddSingleton <IAssemblyDirectoryFormatter>(formatter);
            return(this);
        }
コード例 #2
0
        public RazorLightDependencyBuilder UseNetFrameworkLegacyFix()
        {
            _services.RemoveAll <IAssemblyDirectoryFormatter>();
            IAssemblyDirectoryFormatter formatter = new LegacyFixAssemblyDirectoryFormatter();

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