public static CommandLineOptions CommandLine(this ProtoServer protoServer, string command) { var proto = new ProtoCommandLineTask(command); protoServer.RegisterProtoTask(proto); return(proto); }
public override void RegisterRealTasks(PhysicalServer site) { var task = new ProtoCommandLineTask(@"aspnet_regiis"); task.Args(@" -pe ""connectionStrings"" -app ""/MachineDPAPI"" -prov ""DataProtectionConfigurationProvider"""); string winDir = Environment.GetEnvironmentVariable("WINDIR"); task.ExecutableIsLocatedAt(_path.Combine(winDir, @"Microsoft.NET\Framework\v2.0.50727")); task.WorkingDirectory(_where); task.RegisterRealTasks(site); }
public FileAction EncryptIdentity() { var task = new ProtoCommandLineTask(@"aspnet_regiis"); task.Args(@" -pe ""connectionStrings"" -app ""/MachineDPAPI"" -prov ""DataProtectionConfigurationProvider"""); string winDir = Environment.GetEnvironmentVariable("WINDIR"); task.ExecutableIsLocatedAt(Path.Combine(winDir, @"Microsoft.NET\Framework\v2.0.50727")); _server.RegisterTask(task); return this; }
public FileAction EncryptIdentity() { var task = new ProtoCommandLineTask(@"aspnet_regiis"); task.Args(@" -pe ""connectionStrings"" -app ""/MachineDPAPI"" -prov ""DataProtectionConfigurationProvider"""); string winDir = Environment.GetEnvironmentVariable("WINDIR"); task.ExecutableIsLocatedAt(Path.Combine(winDir, @"Microsoft.NET\Framework\v2.0.50727")); _server.RegisterTask(task); return(this); }
public static CommandLineOptions CommandLine(this Server server, string command) { var proto = new ProtoCommandLineTask(command); server.RegisterTask(proto); return proto; }