Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (14 sloc) 0.209 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
namespace RestSharp
{
public interface IHttpFactory
{
IHttp Create();
}

public class SimpleFactory<T> : IHttpFactory where T : IHttp, new()
{
public IHttp Create()
{
return new T();
}
}
}
Something went wrong with that request. Please try again.