public void CreateResponseHold(string channel, string previousId, string timeoutContentType, string timeoutBody) { Hold = new Hold() { Mode = HoldMode.Response, Channels = new List<Channel>() { new Channel() { Name = channel, PreviousId = previousId } } }; Response = new Response() { Headers = new List<KeyValuePair<string, string>>() { new KeyValuePair<string, string>("Content-Type", timeoutContentType) }, Body = Encoding.UTF8.GetBytes(timeoutBody) }; }
public void CreateResponseHold(string channel, string previousId, string timeoutContentType, string timeoutBody) { Hold = new Hold() { Mode = HoldMode.Response, Channels = new List <Channel>() { new Channel() { Name = channel, PreviousId = previousId } } }; Response = new Response() { Headers = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("Content-Type", timeoutContentType) }, Body = Encoding.UTF8.GetBytes(timeoutBody) }; }