public static IPythonReplEvaluator Create( IServiceProvider serviceProvider, string id, string version, IInterpreterOptionsService interpreterService ) { var factory = interpreterService != null ? interpreterService.FindInterpreter(id, version) : null; if (factory == null) { try { factory = new UnavailableFactory(id, version); } catch (FormatException) { return null; } } return new PythonReplEvaluator(factory, serviceProvider, interpreterService); }
public static IPythonReplEvaluator Create( IServiceProvider serviceProvider, string id, IInterpreterRegistryService interpreterService ) { var factory = interpreterService.FindInterpreter(id); if (factory == null) { try { factory = new UnavailableFactory(id); } catch (FormatException) { return(null); } } return(new PythonReplEvaluator(factory, serviceProvider, interpreterService)); }