다음을 통해 공유


ChannelDispatcher.IsTransactedAccept 속성

정의

수신기에 대한 Accept 메서드 호출이 트랜잭션에서 수행되는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

Boolean

수신기에 대한 Accept 메서드 호출이 트랜잭션에서 수행되면 true이고, 그렇지 않으면 false입니다.

예제

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

적용 대상