ChannelDispatcher.IsTransactedAccept Property

 

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

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public bool IsTransactedAccept { get; }

Property Value

Type: System.Boolean

true if the accept method calls on the listener are done under a transaction; otherwise, 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;

.NET Framework
Available since 3.0
Return to top
Show: