Exemple #1
0
        public Server()
        {
            // Allow all SSL.. sucks I know but mono on linux is having problems without it..
            ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;

            LoadApiKey();

            indexerManager = new IndexerManager();
            sonarrApi      = new SonarrApi();
            webApi         = new WebApi(indexerManager, sonarrApi);
        }
Exemple #2
0
        public Server()
        {
            // Allow all SSL.. sucks I know but mono on linux is having problems without it..
            ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;

            LoadApiKey();

            indexerManager = new IndexerManager();
            sonarrApi = new SonarrApi();
            webApi = new WebApi(indexerManager, sonarrApi);

        }
Exemple #3
0
 public WebApi(IndexerManager indexerManager, SonarrApi sonarrApi)
 {
     this.indexerManager = indexerManager;
     this.sonarrApi      = sonarrApi;
 }
Exemple #4
0
 public WebApi(IndexerManager indexerManager, SonarrApi sonarrApi)
 {
     this.indexerManager = indexerManager;
     this.sonarrApi = sonarrApi;
 }