示例#1
0
        /// <summary>
        /// Creates a new instance of this Rhino.Agent.Controllers.LogsController.
        /// </summary>
        /// <param name="provider"><see cref="IServiceProvider"/> to use with this Rhino.Agent.Controllers.LogsController.</param>
        public LogsController(IServiceProvider provider, IConfiguration appSettings)
        {
            repository = provider.GetRequiredService <RhinoLogsRepository>();

            // get in-folder
            var inFolder = appSettings.GetValue <string>("rhino:reportConfiguration:logsOut");

            logPath = string.IsNullOrEmpty(inFolder) ? Environment.CurrentDirectory + "/Logs" : inFolder;
        }