Exemplo n.º 1
0
 private object GetSubscriptionResponse(EventSubscriptionResponse response)
 {
     return ResultFactory.GetResult(response.Content, response.ContentType, response.Headers);
 }
Exemplo n.º 2
0
        private EventSubscriptionResponse GetEventSubscriptionResponse(string subscriptionId, int timeoutSeconds)
        {
            var response = new EventSubscriptionResponse
            {
                Content = "\r\n",
                ContentType = "text/plain"
            };

            response.Headers["SID"] = subscriptionId;
            response.Headers["TIMEOUT"] = "SECOND-" + timeoutSeconds.ToString(_usCulture);

            return response;
        }