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