コード例 #1
0
 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;
 }
コード例 #2
0
 public static ShieldApplication CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldApplication(client, parent));
 }
コード例 #3
0
 public ShieldApplication(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }
コード例 #4
0
 public static ShieldTasks CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldTasks(client, parent));
 }
コード例 #5
0
 public ShieldTasks(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }
コード例 #6
0
 public static ShieldConnector CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldConnector(client, parent));
 }
コード例 #7
0
 public static ShieldProtections CreateInstance(RestClient client, ShieldClient parent)
 {
     return(new ShieldProtections(client, parent));
 }
コード例 #8
0
 public ShieldProtections(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }
コード例 #9
0
 public ShieldProject(RestClient client, ShieldClient parent)
 {
     _client = client;
     Parent  = parent;
 }