LogicalCallContext Classe

Definição

Fornece um conjunto de propriedades que são transportadas com o caminho do código de execução durante as chamadas de método remoto.Provides a set of properties that are carried with the execution code path during remote method calls.

public ref class LogicalCallContext sealed : ICloneable, System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class LogicalCallContext : ICloneable, System.Runtime.Serialization.ISerializable
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class LogicalCallContext : ICloneable, System.Runtime.Serialization.ISerializable
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public sealed class LogicalCallContext : ICloneable, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type LogicalCallContext = class
    interface ISerializable
    interface ICloneable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type LogicalCallContext = class
    interface ISerializable
    interface ICloneable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type LogicalCallContext = class
    interface ISerializable
    interface ICloneable
Public NotInheritable Class LogicalCallContext
Implements ICloneable, ISerializable
Herança
LogicalCallContext
Atributos
Implementações

Comentários

A LogicalCallContext classe é uma versão da CallContext classe usada durante chamadas de método para domínios de aplicativo remoto.The LogicalCallContext class is a version of the CallContext class that is used during method calls to remote application domains. O CallContext é um objeto de coleção especializado semelhante a um armazenamento local de thread para chamadas de método e fornece slots de dados que são exclusivos para cada thread lógico de execução.The CallContext is a specialized collection object similar to a thread local storage for method calls, and provides data slots that are unique to each logical thread of execution. Os slots não são compartilhados entre contextos de chamada em outros threads lógicos.The slots are not shared across call contexts on other logical threads. Os objetos podem ser adicionados ao à CallContext medida que são transferidos para baixo e para cima no caminho do código de execução e examinados por vários objetos ao longo do caminho.Objects can be added to the CallContext as it travels down and up the execution code path, and examined by various objects along the path.

Quando uma chamada de método remoto é feita a um objeto em outro AppDomain , a CallContext classe gera um LogicalCallContext que viaja junto com a chamada remota.When a remote method call is made to an object in another AppDomain, the CallContext class generates a LogicalCallContext that travels along with the remote call. Somente os objetos que expõem a ILogicalThreadAffinative interface e são armazenados no CallContext são propagados fora do AppDomain em um LogicalCallContext .Only objects that expose the ILogicalThreadAffinative interface and are stored in the CallContext are propagated outside the AppDomain in a LogicalCallContext. Os objetos que não dão suporte a essa interface não são transmitidos em LogicalCallContext instâncias com chamadas de método remoto.Objects that do not support this interface are not transmitted in LogicalCallContext instances with remote method calls.

Observação

Essa classe faz uma demanda de link.This class makes a link demand. Uma SecurityException será gerada se o chamador imediato não tiver a permissão de infraestrutura.A SecurityException is thrown if the immediate caller does not have infrastructure permission. Consulte demandas de link para obter mais informações.See Link Demands for more information.

Propriedades

HasInfo

Obtém um valor que indica se o LogicalCallContext atual contém informações.Gets a value indicating whether the current LogicalCallContext contains information.

Métodos

Clone()

Cria um novo objeto que é uma cópia da instância atual.Creates a new object that is a copy of the current instance.

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
FreeNamedDataSlot(String)

Esvazia um slot de dados com o nome especificado.Empties a data slot with the specified name.

GetData(String)

Recupera um objeto associado ao nome especificado da instância atual.Retrieves an object associated with the specified name from the current instance.

GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetObjectData(SerializationInfo, StreamingContext)

Preenche um SerializationInfo especificado com os dados necessários para serializar o LogicalCallContext atual.Populates a specified SerializationInfo with the data needed to serialize the current LogicalCallContext.

GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
SetData(String, Object)

Armazena o objeto especificado na instância atual e o associa ao nome especificado.Stores the specified object in the current instance, and associates it with the specified name.

ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a