Freigeben über


ChannelDispatcher.IsTransactedAccept Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob die Accept-Methodenaufrufe des Listeners im Rahmen einer Transaktion erfolgen.

public:
 property bool IsTransactedAccept { bool get(); };
public bool IsTransactedAccept { get; }
member this.IsTransactedAccept : bool
Public ReadOnly Property IsTransactedAccept As Boolean

Eigenschaftswert

Boolean

true, wenn die Accept-Methodenaufrufe des Listeners im Rahmen einer Transaktion erfolgen, andernfalls false.

Beispiele

Uri baseAddress = new Uri("http://localhost:8001/Simple");
ServiceHost serviceHost = new ServiceHost(typeof(CalculatorService), baseAddress);

serviceHost.AddServiceEndpoint(
    typeof(ICalculator),
    new WSHttpBinding(),
    "CalculatorServiceObject");

serviceHost.Open();

ChannelDispatcher dispatcher = (ChannelDispatcher)serviceHost.ChannelDispatchers[0];
bool isTransactedAccept = dispatcher.IsTransactedAccept;
Dim baseAddress As New Uri("http://localhost:8001/Simple")
Dim serviceHost As New ServiceHost(GetType(CalculatorService), baseAddress)

serviceHost.AddServiceEndpoint(GetType(ICalculator), New WSHttpBinding(), "CalculatorServiceObject")

serviceHost.Open()

Dim dispatcher As ChannelDispatcher = CType(serviceHost.ChannelDispatchers(0), ChannelDispatcher)
Dim isTransactedAccept As Boolean = dispatcher.IsTransactedAccept

Gilt für