Наследование: ILoggingServices
Пример #1
0
        public CoreServices(IApplicationConstants appConstants
            , ITelemetryService telemetry
            , ITaskService tasks
            , IMainThread mainThread
            , ISecurityService security) {
            Telemetry = telemetry;
            Registry = new RegistryImpl();
            Security = security;
            LoggingServices = new LoggingServices(new LoggingPermissions(appConstants, telemetry, Registry), appConstants);
            Tasks = tasks;

            ProcessServices = new ProcessServices();
            FileSystem = new FileSystem();
            MainThread = mainThread;

            Log = LoggingServices.GetOrCreateLog(appConstants.ApplicationName);
        }
Пример #2
0
        public CoreServices(IApplicationConstants appConstants
            , ITelemetryService telemetry
            , ILoggingPermissions permissions
            , ISecurityService security
            , ITaskService tasks
            , IMainThread mainThread
            , IActionLog log
            , IFileSystem fs
            , IRegistry registry
            , IProcessServices ps) {

            LoggingServices = new LoggingServices(permissions, appConstants);
            Log = log;

            Telemetry = telemetry;
            Security = security;
            Tasks = tasks;

            ProcessServices = ps;
            Registry = registry;
            FileSystem = fs;
            MainThread = mainThread;
        }