Application/IApp.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

using ComLib;
using ComLib.Arguments;
using ComLib.Logging;
using ComLib.Configuration;
using ComLib.EmailSupport;


namespace ComLib.Application
{
    /// <summary>
    /// Interface for any console/batch application.
    /// </summary>
    public interface IApp
    {      
        /// <summary>
        /// The configuration for this application.
        /// </summary>
        IConfigSource Conf { get; set;  }


        /// <summary>
        /// The logger for this application.
        /// </summary>
        ILogMulti Log { get; set; }


        /// <summary>
        /// The emailer for this application.
        /// </summary>
        IEmailService Emailer { get; set; }


        /// <summary>
        /// The result of the execution.
        /// </summary>
        BoolMessageItem Result { get; set; }


        /// <summary>
        /// Application configurable settings.
        /// </summary>
        AppConfig Settings { get; set; }


        /// <summary>
        /// Get the starttime of the application.
        /// </summary>
        DateTime StartTime { get; }


        /// <summary>
        /// Application name from either the settings or this.GetType().
后面还有 132 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。