/// <summary> /// Gets the registered engine for the provided mime-type. /// </summary> /// <param name="mimeType">The mime-type.</param> /// <returns>The contained engine.</returns> public virtual IScriptEngine GetEngine(String mimeType) { if (MimeTypeNames.IsJavaScript(mimeType)) { return(_engine); } return(null); }
Boolean IScriptingService.SupportsType(String mimeType) => MimeTypeNames.IsJavaScript(mimeType);