Beispiel #1
0
        public FileSink(IDateTimeServer timeServer, ILogRotationRule rotationRule)
        {
            this.TimeServer    = timeServer;
            this._rotationRule = rotationRule;

            if (!Directory.Exists(Constants.BasePath))
            {
                Directory.CreateDirectory(Constants.BasePath);
            }

            CreateNewWriter();
        }
 public InquiryController(InquiryRepository repository, IDateTimeServer timeServer)
 {
     _repository = repository;
     _timeServer = timeServer;
 }
Beispiel #3
0
 public FileSink(IDateTimeServer timeServer) : this(timeServer, new DailyRotationRule())
 {
 }
Beispiel #4
0
 public static void SetLocal(IDateTimeServer dateTimeServer)
 {
     _local = dateTimeServer;
 }
Beispiel #5
0
 public static void SetGlobal(IDateTimeServer dateTimeServer)
 {
     _global = dateTimeServer;
 }