Ejemplo n.º 1
0
 public FileHistoryShareTarget(IJ4JLogger <FileHistoryShareTarget> logger, IShareConfiguration config)
     : base((IJ4JLogger <FileHistoryTarget>)logger, config)
 {
     _timer          = new System.Timers.Timer();
     _timer.Elapsed += _timer_Elapsed;
     Logger.Information("set up interval timer");
 }
        public J4JSmsLoggerConfiguration(IShareConfiguration config, ITwilioConfig twilio)
        {
            if (config == null)
            {
                throw new NullReferenceException(nameof(config));
            }

            SmsWriter           = new StringWriter();
            SourceRootPath      = config.ProjectRootPath;
            IncludeSource       = config.IncludeSource;
            IncludeAssemblyName = config.IncludeAssemblyName;

            SourceMessageTemplate = "({File}:{Line})";
            MemberMessageTemplate = "{SourceContext}::{Member}";
        }