WCFBuildProvider Class

WCFBuildProvider Class

 

Generates proxy class code for Windows Communication Foundation (WCF) services

Namespace:   System.Web.Compilation
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

System.Object
  System.Web.Compilation.BuildProvider
    System.Web.Compilation.WCFBuildProvider

[SecurityCriticalAttribute]
public class WCFBuildProvider : BuildProvider

NameDescription
System_CAPS_pubmethodWCFBuildProvider()

Initializes a new instance of the WCFBuildProvider class.

NameDescription
System_CAPS_pubpropertyCodeCompilerType

Represents the compiler type used by a build provider to generate source code for a custom file type.(Inherited from BuildProvider.)

System_CAPS_protpropertyReferencedAssemblies

Represents the assemblies to compile with the source generated by the build provider.(Inherited from BuildProvider.)

System_CAPS_protpropertyVirtualPath

Represents the file to be built by this build provider implementation.(Inherited from BuildProvider.)

System_CAPS_pubpropertyVirtualPathDependencies

Represents a collection of virtual paths that must be built before the build provider generates code.(Inherited from BuildProvider.)

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGenerateCode(AssemblyBuilder)

Generates the service proxy class source code and adds it to the specified assembly builder.(Overrides BuildProvider.GenerateCode(AssemblyBuilder).)

System_CAPS_protmethodGetCodeCompileUnit(IDictionary)

Represents the container for the generated CodeDOM graph.(Inherited from BuildProvider.)

System_CAPS_pubmethodGetCustomString(CompilerResults)

This API supports the product infrastructure and is not intended to be used directly from your code. Generates a string to be persisted in the compiled assembly.(Inherited from BuildProvider.)

System_CAPS_protmethodGetDefaultCompilerType()

Returns the compiler settings for the default language in the application.(Inherited from BuildProvider.)

System_CAPS_protmethodGetDefaultCompilerTypeForLanguage(String)

Returns the compiler settings for the build provider based on the specified language.(Inherited from BuildProvider.)

System_CAPS_pubmethodGetGeneratedType(CompilerResults)

Returns a type generated by the build provider from the virtual path.(Inherited from BuildProvider.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetResultFlags(CompilerResults)

Returns a value indicating actions required when a virtual path is built.(Inherited from BuildProvider.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOpenReader()

Opens a text reader for reading from the virtual path of the current build provider object.(Inherited from BuildProvider.)

System_CAPS_protmethodOpenReader(String)

Opens a text reader for reading from a specified virtual path.(Inherited from BuildProvider.)

System_CAPS_protmethodOpenStream()

Opens a stream for reading the virtual path of the current build provider object.(Inherited from BuildProvider.)

System_CAPS_protmethodOpenStream(String)

Opens a stream for reading from a specified virtual path.(Inherited from BuildProvider.)

System_CAPS_pubmethodProcessCompileErrors(CompilerResults)

When overridden in a derived class, enables you to review compiler error messages so that you can modify them to provide more information.(Inherited from BuildProvider.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The WCFBuildProvider uses mapping files (.svcmap) at the root level of the Web application that contains WCF service references. The mapping files specify the services for which proxy class source code must be generated. The generated proxy class is then compiled with the other resources during the Web application compilation phase.

The inherited VirtualPath property is internally defined and points to the Web application root directory where the .svcmap files reside.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft