C# Class JsonFx.JsonRpc.Proxy.JsonServiceProxyGenerator

Generates a JavaScript proxy class for communicating with a JsonService.
显示文件 Open project: pocket-playlab/jsonfx-v1 Class Usage Examples

Public Methods

Method Description
OutputProxy ( bool prettyPrint ) : string
OutputProxy ( Stream output, bool prettyPrint ) : void
OutputProxy ( TextWriter writer, bool prettyPrint ) : void

Private Methods

Method Description
ConvertParamType ( JsonParameterType paramType ) : string
JsonServiceProxyGenerator ( JsonServiceDescription service ) : System
WriteMethod ( TextWriter writer, JsonMethodDescription method ) : void
WriteNamespaces ( TextWriter writer ) : void
WriteParameter ( TextWriter writer, JsonNamedParameterDescription param ) : void
WriteProperty ( TextWriter writer, string name, object value ) : void

Method Details

OutputProxy() public method

public OutputProxy ( bool prettyPrint ) : string
prettyPrint bool
return string

OutputProxy() public method

public OutputProxy ( Stream output, bool prettyPrint ) : void
output Stream
prettyPrint bool
return void

OutputProxy() public method

public OutputProxy ( TextWriter writer, bool prettyPrint ) : void
writer System.IO.TextWriter
prettyPrint bool
return void