You create a conversation between two services. You want to specify 30 minutes as the maximum amount of time that the conversation remains open. How can you accomplish that?

You create a conversation between two services. You want to specify 30 minutes as the maximum amount of time that the conversation remains open. How can you accomplish that?


Answer: – DECLARE @dialog_handle UNIQUEIDENTIFIED BEGIN DIALOG CONVERSATION @dialog_handle FROM SERVICE SalesClientService TO SERVICE ‘SalesService’ ON CONTRACT SalesContract WITH LIFETIME = 1800;

(You can set the maximum amount of time that a conversation will remain open using the LIFETIME parameter, which is expressed in seconds. By default, the parameter is the maximum value of the int data type.)