Example #1
0
 public VMApplicationInfo( VMIContextViewModel ctx )
     : base(ctx, null)
 {
     VMIContext.Context.ConfigManager.UserConfiguration.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler( OnUserConfigurationChanged );
     VMIContext.Context.ConfigManager.SystemConfiguration.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler( OnSystemConfigurationChanged );
     _hostInfo = ( (IHostInformation)VMIContext.Context.ServiceContainer.GetService( typeof( IHostInformation ) ) );
 }
Example #2
0
 public CommandOpenMod(
     IRuntime runtime,
     IHostInformation hostInformation,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     m_Runtime         = runtime;
     m_HostInformation = hostInformation;
 }
 public CommandOpenModUpgrade(
     IServiceProvider serviceProvider,
     IRuntime runtime,
     NuGetPackageManager packageManager,
     IHostInformation hostInformation,
     ILogger <CommandOpenModUpgrade> logger) : base(serviceProvider)
 {
     m_Runtime         = runtime;
     m_PackageManager  = packageManager;
     m_HostInformation = hostInformation;
     m_Logger          = logger;
 }
Example #4
0
 public OpenModHostedService(
     ILogger <OpenModHostedService> logger,
     IPermissionChecker permissionChecker,
     IHostInformation hostInformation,
     IOpenModHost host,
     IPluginAssemblyStore pluginAssemblyStore,
     IPluginActivator pluginActivator,
     IEventBus eventBus
     )
 {
     m_Logger            = logger;
     m_PermissionChecker = permissionChecker;
     m_HostInformation   = hostInformation;
     m_Host = host;
     m_PluginAssemblyStore = pluginAssemblyStore;
     m_PluginActivator     = pluginActivator;
     m_EventBus            = eventBus;
 }
Example #5
0
 public OpenModHostedService(
     ILogger <OpenModHostedService> logger,
     IPermissionChecker permissionChecker,
     IHostInformation hostInformation,
     IOpenModHost host,
     IPluginAssemblyStore pluginAssemblyStore,
     IPluginActivator pluginActivator,
     IEventBus eventBus,
     IJobScheduler jobScheduler,
     IRuntime runtime
     )
 {
     m_Logger            = logger;
     m_PermissionChecker = permissionChecker;
     m_HostInformation   = hostInformation;
     m_Host = host;
     m_PluginAssemblyStore = pluginAssemblyStore;
     m_PluginActivator     = pluginActivator;
     m_EventBus            = eventBus;
     m_JobScheduler        = jobScheduler;
     m_Runtime             = runtime;
 }
Example #6
0
        public OpenModUnturnedHost(
            IRuntime runtime,
            IHostInformation hostInformation,
            IServiceProvider serviceProvider,
            ILifetimeScope lifetimeScope,
            IDataStoreFactory dataStoreFactory,
            IConsoleActorAccessor consoleActorAccessor,
            ILogger <OpenModUnturnedHost> logger,
            NuGetPackageManager nuGetPackageManager,
            Lazy <ICommandExecutor> commandExecutor,
            Lazy <UnturnedCommandHandler> unturnedCommandHandler)
        {
            m_Runtime              = runtime;
            m_HostInformation      = hostInformation;
            m_ServiceProvider      = serviceProvider;
            m_ConsoleActorAccessor = consoleActorAccessor;
            m_CommandExecutor      = commandExecutor;
            m_Logger = logger;
            m_NuGetPackageManager    = nuGetPackageManager;
            m_UnturnedCommandHandler = unturnedCommandHandler;
            WorkingDirectory         = runtime.WorkingDirectory;
            LifetimeScope            = lifetimeScope;

            DataStore = dataStoreFactory.CreateDataStore(new DataStoreCreationParameters
            {
                Component        = this,
                Prefix           = "openmod.unturned",
                Suffix           = null,
                WorkingDirectory = WorkingDirectory
            });

            m_Capabilities = new HashSet <string>(StringComparer.OrdinalIgnoreCase)
            {
                KnownGameCapabilities.Health,
                KnownGameCapabilities.Inventory,
                KnownGameCapabilities.Vehicles
            };
        }
 public HelpContentManipulator( IHostInformation hostInformations )
 {
     _hostInformations = hostInformations;
 }