Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public static ShieldApplication CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldApplication(client, parent));
 }
Esempio n. 3
0
 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;
 }
Esempio n. 6
0
 public static ShieldConnector CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldConnector(client, parent));
 }
Esempio n. 7
0
 public static ShieldTasks CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldTasks(client, parent));
 }
Esempio n. 8
0
 public ShieldTasks(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }
Esempio n. 9
0
 public ShieldProtections(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }