Export (0) Print
Expand All

IWcfReferenceReceiveContextInformation Interface

Defines the interface to implement to obtain additional context information.

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

public interface IWcfReferenceReceiveContextInformation

The IWcfReferenceReceiveContextInformation type exposes the following members.

  NameDescription
Public methodReceiveImportContextInformationGets additional context information.
Top

This interface enables the WSDL importer mechanism to receive extra context information for better proxy generation and a better developer experience inside Visual Studio. If the WSDL importer implements the IWcfReferenceReceiveContextInformation interface, the ReceiveImportContextInformation method will be called by the WCF proxy generator before any methods of IWsdlImportExtension and IPolicyImportExtension are called.

The additional context information refers to the parameters passed to the ReceiveImportContextInformation method. The parameters include the content of any extension files and a reference to an object that implements the IServiceProvider interface. Any extension files passed to the method are specific to the importer and are used to store any additional information they need. That is, Visual Studio does not control the content of these files and does not use them directly.

NoteNote

Importers refer to a WCF extensibility mechanism. This mechanism enables you to customize the way proxy code is generated from metadata (WSDL/XSD) documents that describe the service. For more information, see Importing Custom Metadata for a WCF Extension on MSDN.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft