CodeProcessor.ProcessGeneratedCode Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Provides an implementation for post processing of the CodeCompileUnit.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public MustOverride Sub ProcessGeneratedCode ( _
domainServiceDescription As DomainServiceDescription, _
codeCompileUnit As CodeCompileUnit, _
typeMapping As IDictionary(Of Type, CodeTypeDeclaration) _
)
'Usage
Dim instance As CodeProcessor
Dim domainServiceDescription As DomainServiceDescription
Dim codeCompileUnit As CodeCompileUnit
Dim typeMapping As IDictionary(Of Type, CodeTypeDeclaration)
instance.ProcessGeneratedCode(domainServiceDescription, _
codeCompileUnit, typeMapping)
public abstract void ProcessGeneratedCode(
DomainServiceDescription domainServiceDescription,
CodeCompileUnit codeCompileUnit,
IDictionary<Type, CodeTypeDeclaration> typeMapping
)
public:
virtual void ProcessGeneratedCode(
DomainServiceDescription^ domainServiceDescription,
CodeCompileUnit^ codeCompileUnit,
IDictionary<Type^, CodeTypeDeclaration^>^ typeMapping
) abstract
abstract ProcessGeneratedCode :
domainServiceDescription:DomainServiceDescription *
codeCompileUnit:CodeCompileUnit *
typeMapping:IDictionary<Type, CodeTypeDeclaration> -> unit
public abstract function ProcessGeneratedCode(
domainServiceDescription : DomainServiceDescription,
codeCompileUnit : CodeCompileUnit,
typeMapping : IDictionary<Type, CodeTypeDeclaration>
)
Parameters
- domainServiceDescription
Type: System.ServiceModel.DomainServices.Server.DomainServiceDescription
The DomainServiceDescription that describes the DomainService currently being examined.
- codeCompileUnit
Type: System.CodeDom.CodeCompileUnit
The CodeCompileUnit that the DomainService client code is being generated into.
- typeMapping
Type: System.Collections.Generic.IDictionary<Type, CodeTypeDeclaration>
A dictionary that maps a DomainService and its related entity types to their corresponding CodeTypeDeclaration.
Remarks
This method is invoked after code generation of the current DomainService has completed. It provides for post processing of the CodeCompileUnit.