コード例 #1
0
        public void Configure(AirbrakeOptions options)
        {
            var serverUrl  = options.Url;
            var projectId  = options.ProjectId;
            var projectKey = options.ProjectKey;

            this.Configure(serverUrl, projectId, projectKey);
        }
コード例 #2
0
        public AirbrakeClient(
            ILoggerFactory loggerFactory,
            AirbrakeOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            this.log = loggerFactory.CreateLogger <AirbrakeClient>();

            this.Configure(options);
        }