コード例 #1
0
        public SscOperations(ISsmsOperations ssmsOperations,
            ApplicationDispatcher dispatcher, 
            ICredentialsManager credentialsManager,
            IDialogController dialogController,
            SscEndpoints sscEndpoints,
            IFavoriteScriptsStore favoriteStore)
        {
            m_SsmsOperations = ssmsOperations;
            m_Dispatcher = dispatcher;
            m_CredentialsManager = credentialsManager;
            m_DialogController = dialogController;
            m_SscEndpoints = sscEndpoints;
            m_FavoriteStore = favoriteStore;

            #if DEBUG
            //Trust all SSL issues when debugging. Obviously this is terrible as we are now susceptible to MITM attacks.
            ServicePointManager.ServerCertificateValidationCallback =
                ((sender, certificate, chain, sslPolicyErrors) => true);
            #endif
        }
コード例 #2
0
ファイル: SscOperations.cs プロジェクト: solsab/sql-scripts
        public SscOperations(ISsmsOperations ssmsOperations,
                             ApplicationDispatcher dispatcher,
                             ICredentialsManager credentialsManager,
                             IDialogController dialogController,
                             SscEndpoints sscEndpoints,
                             IFavoriteScriptsStore favoriteStore)
        {
            m_SsmsOperations     = ssmsOperations;
            m_Dispatcher         = dispatcher;
            m_CredentialsManager = credentialsManager;
            m_DialogController   = dialogController;
            m_SscEndpoints       = sscEndpoints;
            m_FavoriteStore      = favoriteStore;


#if DEBUG
            //Trust all SSL issues when debugging. Obviously this is terrible as we are now susceptible to MITM attacks.
            ServicePointManager.ServerCertificateValidationCallback =
                ((sender, certificate, chain, sslPolicyErrors) => true);
#endif
        }