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