本文整理汇总了C#中PhysicalServer.MapPath方法的典型用法代码示例。如果您正苦于以下问题:C# PhysicalServer.MapPath方法的具体用法?C# PhysicalServer.MapPath怎么用?C# PhysicalServer.MapPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhysicalServer
的用法示例。
在下文中一共展示了PhysicalServer.MapPath方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
var to = server.MapPath(_to);
var archiveFilename = server.MapPath(_archiveFilename);
var task = new UnzipArchiveTask(archiveFilename, to, _options, _path, _explicitExistingFileAction);
server.AddTask(task);
}
示例2: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
var to = server.MapPath(_to);
var archiveFilename = _isLocal ? _archiveFilename : server.MapPath(_archiveFilename);
var task = new UnzipArchiveTask(archiveFilename, to, _options, _path);
server.AddTask(task);
}
示例3: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
string from = _isRemote ? site.MapPath(_from) : _from;
string to = site.MapPath(_to);
var o = new CopyFileTask(from, to, _newFileName, new DotNetPath());
site.AddTask(o);
}
示例4: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server) {
server.AddTask(new ExistsTask(new DotNetPath(),
_reason,
_filesShouldExist.Select(x => server.MapPath(x)).ToList(),
_directoriesShouldExist.Select(x => server.MapPath(x)).ToList(),
_filesShould_NOT_Exist.Select(x => server.MapPath(x)).ToList(),
_directoriesShould_NOT_Exist.Select(x => server.MapPath(x)).ToList(),
_shouldAbortOnError));
}
示例5: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
string target = site.MapPath(_target);
string newName = site.MapPath(_newName);
if (!Path.IsPathRooted(_newName))
newName = site.MapPath(Path.Combine(Path.GetDirectoryName(_target), _newName));
var o = new RenameTask(target, newName, new FileSystem.DotNetPath(), _deleteDestination);
site.AddTask(o);
}
示例6: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
string to = server.MapPath(_folderName);
var task = new EmptyFolderTask(to, new DotNetPath());
server.AddTask(task);
}
示例7: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
string filePath = site.MapPath(_filePath);
var o = new XmlPokeTask(filePath, _items, _setOrInsertItems, _removeItems, new DotNetPath(), _namespacePrefixes);
site.AddTask(o);
}
示例8: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
string filePath = site.MapPath(_filePath);
var o = new XmlPokeTask(filePath, _items, new DotNetPath());
site.AddTask(o);
}
示例9: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
server.AddTask(new FilePokeTask(
server.MapPath(ReplaceTokens(_filePath)),
_encoding,
_replacements,
new DotNetPath()));
}
示例10: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
string to = server.MapPath(_to);
foreach (var f in _froms)
{
var o = new CopyDirectoryTask(f, to, _options, _path);
server.AddTask(o);
}
}
示例11: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
string serverFileName = site.MapPath(_file);
site.AddTask(new DeleteFileTask(serverFileName));
}