편집

다음을 통해 공유


ChannelDispatcher.IsTransactedAccept Property

Definition

Gets a value that indicates whether the accept method calls on the listener are done under a transaction.

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

Property Value

true if the accept method calls on the listener are done under a transaction; otherwise, false.

Examples

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

Applies to