System.Runtime.Remoting.Contexts.IContextPropertyActivator Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Contexts
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
Summary
Indicates that the implementing property is interested in participating in activation and might not have provided a message sink.
C# Syntax:
public interface IContextPropertyActivator
Remarks
The IContextPropertyActivator interface is exposed on all Context properties that are interested in participating in activation and that might have not provided a message sink. Client Context properties send information in the construction message that their counterparts at the remote site could look for during activation.

IContextPropertyActivator is also used to collect information from the client and server context property and to deliver information from the server context properties to the client context properties when returning to the client Context.

See also:
System.Runtime.Remoting.Contexts Namespace

System.Runtime.Remoting.Contexts.IContextPropertyActivator Member List:

Public Methods
CollectFromClientContext Called on each client context property that has this interface, before the construction request leaves the client.
CollectFromServerContext Called on each server context property that has this interface, before the construction response leaves the server for the client.
DeliverClientContextToServerContext DeliverClientContextToServerContext
DeliverServerContextToClientContext Called on each client context property that has this interface, when the construction request returns to the client from the server.
IsOKToActivate Indicates whether it is all right to activate the object type indicated in the msg parameter.

System.Runtime.Remoting.Contexts.IContextPropertyActivator Member Details

Method: CollectFromClientContext(
   IConstructionCallMessage msg
)
Summary
Called on each client context property that has this interface, before the construction request leaves the client.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
void CollectFromClientContext(
   IConstructionCallMessage msg
);
Parameters:

msg

An IConstructionCallMessage.

Remarks
The context property can examine and manipulate the contents of the IConstructionCallMessage.

Return to top


Method: CollectFromServerContext(
   IConstructionReturnMessage msg
)
Summary
Called on each server context property that has this interface, before the construction response leaves the server for the client.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
void CollectFromServerContext(
   IConstructionReturnMessage msg
);
Parameters:

msg

An IConstructionReturnMessage.

Remarks
The context property can examine and manipulate the contents of the IConstructionReturnMessage.

Return to top


Method: DeliverClientContextToServerContext(
   IConstructionCallMessage msg
)
Summary
DeliverClientContextToServerContext
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
bool DeliverClientContextToServerContext(
   IConstructionCallMessage msg
);
Parameters:

msg

An IConstructionCallMessage.

Remarks
The current method is called on each server context property that implements the IContextPropertyActivator interface when a construction request arrives at a server. This allows the context property to examine the contents of each IConstructionCallMessage.

Return to top


Method: DeliverServerContextToClientContext(
   IConstructionReturnMessage msg
)
Summary
Called on each client context property that has this interface, when the construction request returns to the client from the server.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
bool DeliverServerContextToClientContext(
   IConstructionReturnMessage msg
);
Parameters:

msg

An IConstructionReturnMessage.

Remarks
The context property can examine the contents of the IConstructionReturnMessage.

Return to top


Method: IsOKToActivate(
   IConstructionCallMessage msg
)
Summary
Indicates whether it is all right to activate the object type indicated in the msg parameter.
This type supports the Shared Source CLI infrastructure and is not intended to be used directly from your code.
C# Syntax:
bool IsOKToActivate(
   IConstructionCallMessage msg
);
Parameters:

msg

An IConstructionCallMessage.

Return Value:
A Boolean value indicating whether the requested type can be activated.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.