public SignatureFileBehaviour(IConfiguration config, ModParser parser, BrandProvider brand, AppInfoProvider info)
        {
            var section      = config.GetSection("SignatureFiles");
            var requestEmbed = config.GetValue <bool>("RequestEmbed", true);

            _files = section.Exists() ? section.Get <List <string> >() : new List <string>();
            _enableRequestEmbed = requestEmbed;
            _parser             = parser;
            _brand = brand;
            _info  = info;
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AppInfoController"/> class.
 /// </summary>
 public AppInfoController()
 {
     this.appInfoProvider = new AppInfoProvider();
 }
Пример #3
0
 private Platform()
 {
     // Instantiate all the application services.
     this.AppInfo = new AppInfoProvider();
 }