public ShieldConnector(IRestClient client, ShieldClient parent) { _client = new RestClient(client.BaseUrl ?? throw new InvalidOperationException()) { Authenticator = client.Authenticator, Timeout = 1000 * 60 * 10 }; //Not required version for logger (Only in dev). if (!client.BaseUrl.ToString().ToLower().StartsWith("https://api.dotnetsafer.com")) { _client.BaseUrl = new Uri(_client.BaseUrl?.AbsoluteUri.Replace(_client.BaseUrl.PathAndQuery, null) ?? throw new InvalidOperationException()); } Parent = parent; }
public static ShieldApplication CreateInstance(RestClient client, ShieldClient parent) { return(new ShieldApplication(client, parent)); }
public ShieldApplication(RestClient client, ShieldClient parent) { _client = client; Parent = parent; }
public static ShieldProject CreateInstance(RestClient client, ShieldClient parent) { return(new ShieldProject(client, parent)); }
public ShieldProject(RestClient client, ShieldClient parent) { _client = client; Parent = parent; }
public static ShieldConnector CreateInstance(RestClient client, ShieldClient parent) { return(new ShieldConnector(client, parent)); }
public static ShieldTasks CreateInstance(RestClient client, ShieldClient parent) { return(new ShieldTasks(client, parent)); }
public ShieldTasks(RestClient client, ShieldClient parent) { _client = client; Parent = parent; }
public ShieldProtections(RestClient client, ShieldClient parent) { _client = client; Parent = parent; }