Example #1
0
 public TemporaryApplicationAdapter(
     ConfigApplication application,
     ApplicationGlobals globals,
     IReadOnlyList <ServiceEntry> services)
 {
     this.application = application;
     Globals          = globals;
     Services         = services;
 }
Example #2
0
        public GroveledApplication(ApplicationGlobals globals, string rootDirectory, IEnumerable <ServiceEntry> services)
        {
            if (globals is null)
            {
                throw new ArgumentNullException(nameof(globals));
            }

            if (rootDirectory is null)
            {
                throw new ArgumentNullException(nameof(rootDirectory));
            }

            if (services is null)
            {
                throw new ArgumentNullException(nameof(services));
            }

            Globals       = globals;
            RootDirectory = rootDirectory;
            Services      = services.ToArray();
        }