本文整理汇总了C#中PhysicalServer.AddTask方法的典型用法代码示例。如果您正苦于以下问题:C# PhysicalServer.AddTask方法的具体用法?C# PhysicalServer.AddTask怎么用?C# PhysicalServer.AddTask使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhysicalServer
的用法示例。
在下文中一共展示了PhysicalServer.AddTask方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
var ub = new UriBuilder("msmq", server.Name) {Path = _queueName};
if(server.IsLocal) server.AddTask(new CreateLocalMsmqQueueTask(server, new QueueAddress(ub.Uri), _queueOptions.transactional));
else server.AddTask(new CreateRemoteMsmqQueueTask(server, new QueueAddress(ub.Uri), _queueOptions.transactional));
}
示例2: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
server.AddTask(new CreateRegistryKeyTask(server.Name, _hive, _name));
_subKeys.Each(subKey => subKey.RegisterRealTasks(server));
_values.Each(value =>
server.AddTask(new CreateRegistryValueTask(server.Name, _hive, _name, value.Name, value.ValueType,
value.Value)));
}
示例3: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
var location = _path.GetPhysicalPath(site, _location,true);
if (site.IsLocal)
{
site.AddTask(new LocalTopshelfTask(_exeName, location, _instanceName, _username, _password));
}
else
{
site.AddTask(new RemoteTopshelfTask(_exeName, location, _instanceName, site, _username, _password));
}
}
示例4: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
var location = _path.GetPhysicalPath(site, _location, true);
if (site.IsLocal)
{
site.AddTask(new LocalNServiceBusHostTask(_exeName, location, _instanceName, _username, _password, _serviceName, _displayName, _description));
}
else
{
site.AddTask(new RemoteNServiceBusHostTask(_exeName, location, _instanceName, site, _username, _password, _serviceName, _displayName, _description));
}
}
示例5: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
var location = _configurator._path.GetPhysicalPath(server, _location, true);
if (server.IsLocal)
{
server.AddTask(new LocalInstallRavenDbAsServiceTask(location));
}
else
{
server.AddTask(new RemoteInstallRavenDbAsServiceTask(server, location));
}
}
示例6: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
var ub = new UriBuilder("msmq", server.Name) { Path = _queue };
if (server.IsLocal)
{
var task = new LocalMsmqGrantReadWriteTask(new QueueAddress(ub.Uri), _group);
server.AddTask(task);
}
else
{
var task = new RemoteMsmqGrantReadWriteTask(server, new QueueAddress(ub.Uri), _group);
server.AddTask(task);
}
}
示例7: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
var path = PathConverter.Convert(site, _path);
var task = new ClearAclsTask(path, _groupsToPreserve, _groupsToRemove);
site.AddTask(task);
}
示例8: 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);
}
示例9: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
string to = site.MapPath(_to);
var o = new CopyFileTask(_from, to, _newFileName, new DotNetPath());
site.AddTask(o);
}
示例10: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer server)
{
string to = server.MapPath(_folderName);
var task = new EmptyFolderTask(to, new DotNetPath());
server.AddTask(task);
}
示例11: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
string filePath = site.MapPath(_filePath);
var o = new XmlPokeTask(filePath, _items, new DotNetPath());
site.AddTask(o);
}
示例12: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
var task = new PublishSsrsTask(_publishTo);
task.AddReportsIn(_publishAllIn);
task.AddReport(_publish);
site.AddTask(task);
}
示例13: 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);
}
示例14: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
var ub = new UriBuilder("msmq", site.Name) { Path = _queue };
var task = new MsmqGrantWriteTask(site, new QueueAddress(ub.Uri), _group);
site.AddTask(task);
}
示例15: RegisterRealTasks
public override void RegisterRealTasks(PhysicalServer site)
{
var path = PathConverter.Convert(site,_path);
var task = new RemoveAclsInheritanceTask(path);
site.AddTask(task);
}