public FileSystemProxyCore(FileSystemProxyConfiguration config, ExternalKeySet externalKeys, IDeviceOperator deviceOperator) { Config = config; ProgramRegistry = new ProgramRegistryImpl(Config.ProgramRegistryServiceImpl); ExternalKeys = externalKeys ?? new ExternalKeySet(); DeviceOperator = deviceOperator; }
public void InitializeFileSystemServer(FileSystemCreators fsCreators, IDeviceOperator deviceOperator) { if (FileSystemServer != null) { return; } lock (_initLocker) { if (FileSystemServer != null) { return; } var config = new FileSystemServerConfig(); config.FsCreators = fsCreators; config.DeviceOperator = deviceOperator; FileSystemServer = new FileSystemServer(config); } }
public Result OpenDeviceOperator(out IDeviceOperator deviceOperator) { deviceOperator = DeviceOperator; return(Result.Success); }
public Result OpenDeviceOperator(out IDeviceOperator deviceOperator) { // Missing permission check return(FsProxyCore.OpenDeviceOperator(out deviceOperator)); }
public FileSystemProxyCore(FileSystemCreators fsCreators, ExternalKeySet externalKeys, IDeviceOperator deviceOperator) { FsCreators = fsCreators; ExternalKeys = externalKeys ?? new ExternalKeySet(); DeviceOperator = deviceOperator; }