C# 클래스 React.ReactSiteConfiguration

Site-wide configuration for ReactJS.NET
상속: IReactSiteConfiguration
파일 보기 프로젝트 열기: reactjs/React.NET

공개 메소드들

메소드 설명
AddScript ( string filename ) : IReactSiteConfiguration

Adds a script to the list of scripts that are executed. This should be called for all React components and their dependencies. If the script does not have any JSX in it (for example, it's built using Webpack or Gulp), use AddScriptWithoutTransform instead.

AddScriptWithoutTransform ( string filename ) : IReactSiteConfiguration

Adds a script to the list of scripts that are executed. This is the same as AddScript except it does not run JSX transformation on the script and thus is more efficient.

DisableServerSideRendering ( ) : IReactSiteConfiguration

Disables server-side rendering. This is useful when debugging your scripts.

SetAllowMsieEngine ( bool allowMsieEngine ) : IReactSiteConfiguration

Sets whether the MSIE engine should be used if V8 is unavailable.

SetBabelConfig ( React.BabelConfig value ) : IReactSiteConfiguration

Sets the Babel configuration to use.

SetJsonSerializerSettings ( JsonSerializerSettings settings ) : IReactSiteConfiguration

Sets the configuration for json serializer.

Thic confiquration is used when component initialization script is being generated server-side.

SetLoadBabel ( bool loadBabel ) : IReactSiteConfiguration

Sets whether Babel is loading. Disabling the loading of Babel can improve startup performance, but all your JSX files must be transformed beforehand (eg. through Babel, Webpack or Browserify).

SetLoadReact ( bool loadReact ) : IReactSiteConfiguration

Sets whether the built-in version of React is loaded. If false, you must provide your own version of React.

SetMaxEngines ( int maxEngines ) : IReactSiteConfiguration

Sets the maximum number of engines that will be created in the pool. Defaults to 25.

SetReuseJavaScriptEngines ( bool value ) : IReactSiteConfiguration

Sets whether JavaScript engines should be reused across requests.

SetStartEngines ( int startEngines ) : IReactSiteConfiguration

Sets the number of engines to initially start when a pool is created. Defaults to 10.

SetUseDebugReact ( bool value ) : IReactSiteConfiguration

Sets whether to use the debug version of React. This is slower, but gives useful debugging tips.

비공개 메소드들

메소드 설명
Glob ( string glob ) : IEnumerable

Gets all the file paths that match the specified pattern. If the pattern is a plain path, just returns that path verbatim.

ReactSiteConfiguration ( ) : Newtonsoft.Json

메소드 상세

AddScript() 공개 메소드

Adds a script to the list of scripts that are executed. This should be called for all React components and their dependencies. If the script does not have any JSX in it (for example, it's built using Webpack or Gulp), use AddScriptWithoutTransform instead.
public AddScript ( string filename ) : IReactSiteConfiguration
filename string /// Name of the file to execute. Should be a server relative path starting with ~ (eg. /// ~/Scripts/Awesome.js) ///
리턴 IReactSiteConfiguration

AddScriptWithoutTransform() 공개 메소드

Adds a script to the list of scripts that are executed. This is the same as AddScript except it does not run JSX transformation on the script and thus is more efficient.
public AddScriptWithoutTransform ( string filename ) : IReactSiteConfiguration
filename string /// Name of the file to execute. Should be a server relative path starting with ~ (eg. /// ~/Scripts/Awesome.js) ///
리턴 IReactSiteConfiguration

DisableServerSideRendering() 공개 메소드

Disables server-side rendering. This is useful when debugging your scripts.
public DisableServerSideRendering ( ) : IReactSiteConfiguration
리턴 IReactSiteConfiguration

SetAllowMsieEngine() 공개 메소드

Sets whether the MSIE engine should be used if V8 is unavailable.
public SetAllowMsieEngine ( bool allowMsieEngine ) : IReactSiteConfiguration
allowMsieEngine bool
리턴 IReactSiteConfiguration

SetBabelConfig() 공개 메소드

Sets the Babel configuration to use.
public SetBabelConfig ( React.BabelConfig value ) : IReactSiteConfiguration
value React.BabelConfig
리턴 IReactSiteConfiguration

SetJsonSerializerSettings() 공개 메소드

Sets the configuration for json serializer.
Thic confiquration is used when component initialization script is being generated server-side.
public SetJsonSerializerSettings ( JsonSerializerSettings settings ) : IReactSiteConfiguration
settings JsonSerializerSettings Settings.
리턴 IReactSiteConfiguration

SetLoadBabel() 공개 메소드

Sets whether Babel is loading. Disabling the loading of Babel can improve startup performance, but all your JSX files must be transformed beforehand (eg. through Babel, Webpack or Browserify).
public SetLoadBabel ( bool loadBabel ) : IReactSiteConfiguration
loadBabel bool
리턴 IReactSiteConfiguration

SetLoadReact() 공개 메소드

Sets whether the built-in version of React is loaded. If false, you must provide your own version of React.
public SetLoadReact ( bool loadReact ) : IReactSiteConfiguration
loadReact bool
리턴 IReactSiteConfiguration

SetMaxEngines() 공개 메소드

Sets the maximum number of engines that will be created in the pool. Defaults to 25.
public SetMaxEngines ( int maxEngines ) : IReactSiteConfiguration
maxEngines int
리턴 IReactSiteConfiguration

SetReuseJavaScriptEngines() 공개 메소드

Sets whether JavaScript engines should be reused across requests.
public SetReuseJavaScriptEngines ( bool value ) : IReactSiteConfiguration
value bool
리턴 IReactSiteConfiguration

SetStartEngines() 공개 메소드

Sets the number of engines to initially start when a pool is created. Defaults to 10.
public SetStartEngines ( int startEngines ) : IReactSiteConfiguration
startEngines int
리턴 IReactSiteConfiguration

SetUseDebugReact() 공개 메소드

Sets whether to use the debug version of React. This is slower, but gives useful debugging tips.
public SetUseDebugReact ( bool value ) : IReactSiteConfiguration
value bool
리턴 IReactSiteConfiguration