public CSharpOptimizer(IBlazorClientConfiguration blazorClientConfiguration, IServiceProvider serviceProvider)
 {
     if (blazorClientConfiguration.CompileLocally)
     {
         _cSharpCompiler = (CSharpCompiler)serviceProvider.GetService(typeof(ICSharpCompiler));
     }
     else
     {
         _cSharpCompiler = (CSharpRemoteCompiler)serviceProvider.GetService(typeof(CSharpRemoteCompiler));
     }
 }
        public CSharpThreadedOptimizer(IBlazorClientConfiguration blazorClientConfiguration, IServiceProvider serviceProvider,
                                       IWorkerFactory workerFactory)
        {
            if (blazorClientConfiguration.CompileLocally)
            {
                _cSharpCompiler = (CSharpCompiler)serviceProvider.GetService(typeof(ICSharpCompiler));
            }
            else
            {
                _cSharpCompiler = (CSharpRemoteCompiler)serviceProvider.GetService(typeof(CSharpRemoteCompiler));
            }

            _workerFactory = workerFactory;
        }
 public JavascriptOptimizer(IJSRuntime jSRuntime, IBlazorClientConfiguration blazorClientConfiguration)
 {
     _jSRuntime = jSRuntime;
     _blazorClientConfiguration = blazorClientConfiguration;
 }
 public CSharpRemoteCompiler(HttpClient httpClient, IMscorlibProvider mscorlibProvider, IBlazorClientConfiguration blazorClientConfiguration)
     : base(httpClient, mscorlibProvider)
 {
     _blazorClientConfiguration = blazorClientConfiguration;
 }