Bugsnag.Library.BugSnag.BugSnag C# (CSharp) Метод

BugSnag() публичный Метод

Constructor to set defaults
public BugSnag ( ) : System
Результат System
        public BugSnag()
        {
            //  SSL is set to 'off' by default
            useSSL = false;

            //  Release stage defaults to 'production'
            releaseStage = "production";

            //  Notify release stages defaults to just notifying
            //  for production
            notifyReleaseStages = new List<string>();
            notifyReleaseStages.Add("production");

            //  CHECK CONFIGURATION SETTINGS

            //  apiKey
            if(!string.IsNullOrEmpty(ConfigurationManager.AppSettings["BugSnagApiKey"]))
            {
                apiKey = ConfigurationManager.AppSettings["BugSnagApiKey"];
            }

            //  SSL
            if(!string.IsNullOrEmpty(ConfigurationManager.AppSettings["BugSnagUseSSL"]))
            {
                useSSL = Convert.ToBoolean(ConfigurationManager.AppSettings["BugSnagUseSSL"]);
            }

            //  Release stage
            if(!string.IsNullOrEmpty(ConfigurationManager.AppSettings["BugSnagReleaseStage"]))
            {
                releaseStage = ConfigurationManager.AppSettings["BugSnagReleaseStage"];
            }

            //  Notify release stages
            if(!string.IsNullOrEmpty(ConfigurationManager.AppSettings["BugSnagNotifyReleaseStages"]))
            {
                notifyReleaseStages.Clear();
                notifyReleaseStages.AddRange(ConfigurationManager.AppSettings["BugSnagNotifyReleaseStages"].Split('|'));
            }

            //  Application version
            if(!string.IsNullOrEmpty(ConfigurationManager.AppSettings["applicationVersion"]))
            {
                applicationVersion = ConfigurationManager.AppSettings["applicationVersion"];
            }
        }

Same methods

BugSnag::BugSnag ( string apiKey ) : System