Example #1
0
 public FileSystemProxyCore(FileSystemProxyConfiguration config, ExternalKeySet externalKeys, IDeviceOperator deviceOperator)
 {
     Config          = config;
     ProgramRegistry = new ProgramRegistryImpl(Config.ProgramRegistryServiceImpl);
     ExternalKeys    = externalKeys ?? new ExternalKeySet();
     DeviceOperator  = deviceOperator;
 }
Example #2
0
        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);
            }
        }
Example #3
0
 public Result OpenDeviceOperator(out IDeviceOperator deviceOperator)
 {
     deviceOperator = DeviceOperator;
     return(Result.Success);
 }
Example #4
0
        public Result OpenDeviceOperator(out IDeviceOperator deviceOperator)
        {
            // Missing permission check

            return(FsProxyCore.OpenDeviceOperator(out deviceOperator));
        }
Example #5
0
 public FileSystemProxyCore(FileSystemCreators fsCreators, ExternalKeySet externalKeys, IDeviceOperator deviceOperator)
 {
     FsCreators     = fsCreators;
     ExternalKeys   = externalKeys ?? new ExternalKeySet();
     DeviceOperator = deviceOperator;
 }