You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You create the following service definition
[ServiceContract(SessionMode=SessionMode.Required)]
public interface IMyService {…}
You need to custom manage the lifetime of the session.
Which service implementation should you use?
A.
[ServiceBehavior(AutomaticSessionShutdown=true)]
public class serviceImpl {…}
B.
[ServiceBehavior(AutomaticSessionShutdown=false)]
public class serviceImpl {…}
C.
[ServiceBehavior(UseSynchronizationContext=true)]
public class serviceImpl {…}
D.
[ServiceBehavior(UseSynchronizationContext=false)]
public class serviceImpl {…}