Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate Class Reference

This surrogate is responsible for serialization of delegates and map them to the matching delegates in the assembly passed to the constructor during deserialization. More...

Inheritance diagram for Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate:

Public Member Functions

 BotServiceDelegateSurrogate (Assembly assembly)
 Constructs an instance of surrogate provider. More...
 

Public Attributes

const string NameMethod = "method"
 The key for the MethodInfo of delegate in the SerializationInfo. More...
 
const string NameTarget = "target"
 The key for the target of delegate in the SerializationInfo. More...
 
const string NameType = "type"
 The key for the type of delegate in the SerializationInfo. More...
 

Static Public Attributes

static readonly BindingFlags BindingFlags
 The binding flags used for Type.GetMethod(string,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[]) More...
 

Protected Member Functions

virtual MethodInfo GetMethodInfoFromCurrentAssembly (MethodInfo method)
 Maps the method info to the new assembly. More...
 

Detailed Description

This surrogate is responsible for serialization of delegates and map them to the matching delegates in the assembly passed to the constructor during deserialization.

Definition at line 146 of file Microsoft.Bot.Builder.Azure/Utils.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate.BotServiceDelegateSurrogate ( Assembly  assembly)
inline

Constructs an instance of surrogate provider.

Parameters
assemblyThe assembly that will use for delegate mapping.

Definition at line 176 of file Microsoft.Bot.Builder.Azure/Utils.cs.

Member Function Documentation

virtual MethodInfo Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate.GetMethodInfoFromCurrentAssembly ( MethodInfo  method)
inlineprotectedvirtual

Maps the method info to the new assembly.

Parameters
methodThe method info.
Returns
The method info for the corresponding method in the new assembly.

Definition at line 219 of file Microsoft.Bot.Builder.Azure/Utils.cs.

Member Data Documentation

readonly BindingFlags Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate.BindingFlags
static
Initial value:
=
BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic

The binding flags used for Type.GetMethod(string,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])

Definition at line 167 of file Microsoft.Bot.Builder.Azure/Utils.cs.

const string Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate.NameMethod = "method"

The key for the MethodInfo of delegate in the SerializationInfo.

Definition at line 162 of file Microsoft.Bot.Builder.Azure/Utils.cs.

const string Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate.NameTarget = "target"

The key for the target of delegate in the SerializationInfo.

Definition at line 157 of file Microsoft.Bot.Builder.Azure/Utils.cs.

const string Microsoft.Bot.Builder.Azure.BotServiceDelegateSurrogate.NameType = "type"

The key for the type of delegate in the SerializationInfo.

Definition at line 152 of file Microsoft.Bot.Builder.Azure/Utils.cs.


The documentation for this class was generated from the following file: