Example #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
        }
Example #2
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
        }