public MapDirectory ( String label, String uncPath ) : void | ||
label | String | Disk label |
uncPath | String | UNC path to the directory |
return | void |
public override void OnWrapperStarted() { foreach (SharedDirectoryMapperConfig config in _entries) { if (config.EnableMapping) { Logger.Info(DisplayName + ": Mapping shared directory " + config.UNCPath + " to " + config.Label); try { _mapper.MapDirectory(config.Label, config.UNCPath); } catch (MapperException ex) { HandleMappingError(config, ex); } } else { Logger.Warn(DisplayName + ": Mapping of " + config.Label + " is disabled"); } } }
public override void OnStart(IEventWriter eventWriter) { foreach (SharedDirectoryMapperConfig config in _entries) { if (config.EnableMapping) { eventWriter.LogEvent(DisplayName + ": Mapping shared directory " + config.UNCPath + " to " + config.Label, EventLogEntryType.Information); try { _mapper.MapDirectory(config.Label, config.UNCPath); } catch (MapperException ex) { HandleMappingError(config, eventWriter, ex); } } else { eventWriter.LogEvent(DisplayName + ": Mapping of " + config.Label + " is disabled", EventLogEntryType.Warning); } } }