Upravit

Sdílet prostřednictvím


WCFBuildProvider.GenerateCode(AssemblyBuilder) Method

Definition

Generates the service proxy class source code and adds it to the specified assembly builder.

public:
 override void GenerateCode(System::Web::Compilation::AssemblyBuilder ^ assemblyBuilder);
public override void GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder);
override this.GenerateCode : System.Web.Compilation.AssemblyBuilder -> unit
Public Overrides Sub GenerateCode (assemblyBuilder As AssemblyBuilder)

Parameters

assemblyBuilder
AssemblyBuilder

An instance of the AssemblyBuilder object that the generated proxy code must be added to. This instance is provided by ASP.NET at run time.

Remarks

This method searches for .svcmap files in the Web application root directory. If files are found, the method generates the source code of a proxy class for the related services into the specified assemblyBuilder.

Notes to Inheritors

Typically, this method parses the .svcmap mapping files and adds the generated source code to the specified AssemblyBuilder object. You can contribute source code to the assembly in the form of a TextWriter object or a CodeDOM graph.

For more information, see BuildProvider.

Applies to

See also