public ShieldConnector(IRestClient client, ShieldClient parent)
 {
     _client = new RestClient(client.BaseUrl ?? throw new InvalidOperationException())
     {
         Authenticator = client.Authenticator
     };
     //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 ShieldTasks CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldTasks(client, parent));
 }
 public ShieldTasks(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }
 public static ShieldConnector CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldConnector(client, parent));
 }
 public static ShieldProtections CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldProtections(client, parent));
 }
 public ShieldProtections(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }
 public ShieldProject(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }