示例#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;
 }
示例#3
0
 public FileSink(IDateTimeServer timeServer) : this(timeServer, new DailyRotationRule())
 {
 }
示例#4
0
 public static void SetLocal(IDateTimeServer dateTimeServer)
 {
     _local = dateTimeServer;
 }
示例#5
0
 public static void SetGlobal(IDateTimeServer dateTimeServer)
 {
     _global = dateTimeServer;
 }