Exemplo n.º 1
0
 public RequestSender(IRestSerializer serializer, ApplicationProperties properties,
                      IRestClient client, UnAuthorizedHandler unAuthorizedHandler)
 {
     _serializer = serializer;
     _properties = properties;
     _client     = client;
     _client.AddHandler("application/json", () => _serializer);
     _client.AddHandler("text/json", () => _serializer);
     _client.AddHandler("text/x-json", () => _serializer);
     _client.AddHandler("text/javascript", () => _serializer);
     _client.AddHandler("*+json", () => _serializer);
     _unAuthorizedHandler = unAuthorizedHandler;
 }
 public UnAuthorizedHandler(ApplicationProperties properties)
 {
     _properties = properties;
 }