DurableServiceAttribute Classe

Definição

Cuidado

The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*

Especifica o comportamento de execução interna de uma implementação de contrato de serviço durável.Specifies the internal execution behavior of a durable service contract implementation.

public ref class DurableServiceAttribute sealed : Attribute, System::ServiceModel::Description::IServiceBehavior
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class DurableServiceAttribute : Attribute, System.ServiceModel.Description.IServiceBehavior
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")]
public sealed class DurableServiceAttribute : Attribute, System.ServiceModel.Description.IServiceBehavior
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type DurableServiceAttribute = class
    inherit Attribute
    interface IServiceBehavior
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")>]
type DurableServiceAttribute = class
    inherit Attribute
    interface IServiceBehavior
Public NotInheritable Class DurableServiceAttribute
Inherits Attribute
Implements IServiceBehavior
Herança
DurableServiceAttribute
Atributos
Implementações

Comentários

Os seguintes itens são verificados como parte da lógica de validação para serviços duráveis:The following items are checked as part of the validation logic for durable services:

Construtores

DurableServiceAttribute()

Inicializa uma nova instância da classe DurableServiceAttribute.Initializes a new instance of the DurableServiceAttribute class.

Propriedades

SaveStateInOperationTransaction

Obtém ou define um valor que indica se o estado da instância de serviço é persistente para o PersistenceProvider usando a mesma transação sob a qual a operação é executada.Gets or sets a value that indicates whether the service instance state is persisted to the PersistenceProvider using the same transaction under which the operation is run.

TypeId

Quando implementado em uma classe derivada, obtém um identificador exclusivo para este Attribute.When implemented in a derived class, gets a unique identifier for this Attribute.

(Herdado de Attribute)
UnknownExceptionAction

Obtém ou define o valor de enumeração UnknownExceptionAction associado ao serviço durável.Gets or sets the UnknownExceptionAction enumeration value associated with the durable service.

Métodos

AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)

Não implementado no DurableServiceAttribute.Not implemented in DurableServiceAttribute.

ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

Personaliza o runtime de serviço para dar suporte a propriedades de comportamento de serviço durável, como especificar um PersistenceProvider para o serviço.Customizes the service runtime to support durable service behavior properties, such as specifying a PersistenceProvider for the service.

Equals(Object)

Retorna um valor que indica se essa instância é igual a um objeto especificado.Returns a value that indicates whether this instance is equal to a specified object.

(Herdado de Attribute)
GetHashCode()

Retorna o código hash para a instância.Returns the hash code for this instance.

(Herdado de Attribute)
GetType()

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

(Herdado de Object)
IsDefaultAttribute()

Quando substituído em uma classe derivada, indica se o valor dessa instância é o valor padrão para a classe derivada.When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

(Herdado de Attribute)
Match(Object)

Quando substituído em uma classe derivada, retorna um valor que indica se essa instância é igual a um objeto especificado.When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

(Herdado de Attribute)
MemberwiseClone()

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

(Herdado de Object)
ToString()

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

(Herdado de Object)
Validate(ServiceDescription, ServiceHostBase)

Verifica se todas as operações duráveis no serviço estão definidas corretamente.Verifies that all durable operations on the service are set up correctly.

Implantações explícitas de interface

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de expedição.Maps a set of names to a corresponding set of dispatch identifiers.

(Herdado de Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Recupera as informações de tipo para um objeto, que pode ser usado para obter as informações de tipo para uma interface.Retrieves the type information for an object, which can be used to get the type information for an interface.

(Herdado de Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Retorna o número de interfaces de informações do tipo que um objeto fornece (0 ou 1).Retrieves the number of type information interfaces that an object provides (either 0 or 1).

(Herdado de Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Fornece acesso a propriedades e métodos expostos por um objeto.Provides access to properties and methods exposed by an object.

(Herdado de Attribute)

Aplica-se a