C# Class ReactNative.Framework.ReactBridgeImpl

Inheritance: IReactBridge
显示文件 Open project: joemcbride/react-native-wpf

Public Methods

Method Description
Execute ( string script, string sourceUrl ) : Task
ExecuteJSCall ( string name, string method, object arguments ) : Task
HandleBuffer ( string json ) : void
HandleRequestNumber ( int moduleId, int methodId, object arguments ) : void
InjectModules ( ) : void
LoadApplicationScript ( string bundle, string sourceUrl ) : Task
PollQueue ( ) : void
ReactBridgeImpl ( IReactAssemblyProvider assemblyProvider, IModuleLoader moduleLoader, IJavaScriptExecutor executor, IUIManager uiManager ) : Caliburn.Micro
Reset ( ) : void
RunApplication ( string moduleName, long rootTag, object>.IDictionary initialProperties ) : System.Threading.Tasks.Task

Private Methods

Method Description
ConvertArguments ( JToken token ) : object[]

Method Details

Execute() public method

public Execute ( string script, string sourceUrl ) : Task
script string
sourceUrl string
return Task

ExecuteJSCall() public method

public ExecuteJSCall ( string name, string method, object arguments ) : Task
name string
method string
arguments object
return Task

HandleBuffer() public method

public HandleBuffer ( string json ) : void
json string
return void

HandleRequestNumber() public method

public HandleRequestNumber ( int moduleId, int methodId, object arguments ) : void
moduleId int
methodId int
arguments object
return void

InjectModules() public method

public InjectModules ( ) : void
return void

LoadApplicationScript() public method

public LoadApplicationScript ( string bundle, string sourceUrl ) : Task
bundle string
sourceUrl string
return Task

PollQueue() public method

public PollQueue ( ) : void
return void

ReactBridgeImpl() public method

public ReactBridgeImpl ( IReactAssemblyProvider assemblyProvider, IModuleLoader moduleLoader, IJavaScriptExecutor executor, IUIManager uiManager ) : Caliburn.Micro
assemblyProvider IReactAssemblyProvider
moduleLoader IModuleLoader
executor IJavaScriptExecutor
uiManager IUIManager
return Caliburn.Micro

Reset() public method

public Reset ( ) : void
return void

RunApplication() public method

public RunApplication ( string moduleName, long rootTag, object>.IDictionary initialProperties ) : System.Threading.Tasks.Task
moduleName string
rootTag long
initialProperties object>.IDictionary
return System.Threading.Tasks.Task