Esempio n. 1
0
 public IisProtoTask(string websiteName, Path path)
 {
     _path = path;
     WebsiteName = websiteName;
     ManagedRuntimeVersion = Tasks.Iis.ManagedRuntimeVersion.V2;
     AuthenticationToSet = new Dictionary<IISAuthenticationMode, bool>();
 }
Esempio n. 2
0
 public ProtoExistsTask(Path path, string reason, bool shouldAbortOnError)
     : base()
 {
     _path = path;
      _reason = reason;
      _shouldAbortOnError = shouldAbortOnError;
 }
Esempio n. 3
0
 public static void DrawPath(this PictureBox pb, Path path, bool closed = true, bool clear = true)
 {
     int count = path.Points.Count;
     if (path == null)
         return;
     if (clear)
         pb.Clear();
     System.Drawing.Point[] points = path.Points.ToArray();
     for (int i = 0; i < count - 1; i++) //edge
     {
         int x1 = points[i].X;
         int x2 = points[(i + 1) % count].X;
         int y1 = points[i].Y;
         int y2 = points[(i + 1) % count].Y;
         g.DrawLine(pens[3], x1 + xoffset, y1 + yoffset, x2 + xoffset, y2 + yoffset);
     }
     if (closed) //last edge
         g.DrawLine(pens[4], points[count - 1].X + xoffset, points[count - 1].Y + yoffset, points[0].X + xoffset, points[0].Y + yoffset);
     g.DrawLine(pens[2], points[0].X + xoffset, points[0].Y + yoffset, points[1].X + xoffset, points[1].Y + yoffset); //first edge
     pb.Invalidate();
 }
Esempio n. 4
0
 public TopshelfConfigurator(Path path)
 {
     _path = path;
 }
Esempio n. 5
0
 public ProtoCopyDirectoryTask(Path path)
 {
     _path = path;
 }
Esempio n. 6
0
 public IisProtoTask(string websiteName, Path path)
 {
     _path = path;
     WebsiteName = websiteName;
     ManagedRuntimeVersion = Tasks.Iis.ManagedRuntimeVersion.V2;
 }
 public NServiceBusHostConfigurator(Path path)
 {
     _path = path;
 }
Esempio n. 8
0
 public RavenDbConfigurator(Path path)
 {
     _path = path;
     _innerTasks = new List<BaseProtoTask>();
 }
 public NServiceBusHostConfigurator(Path path)
 {
     _path = path;
     _args = new NServiceBusHostExeArgs();
 }
Esempio n. 10
0
 public ProtoCopyFileTask(Path path, string @from, bool isRemote = false)
 {
     _from = ReplaceTokens(from);
     _isRemote = isRemote;
 }
Esempio n. 11
0
 public ProtoExistsTask(Path path, string reason) : this(path, reason, false) { }
 public ProtoEncryptAppConfigTask(Path path, string whereIsTheConfig)
 {
     _where = ReplaceTokens(whereIsTheConfig);
     _path = path;
 }
Esempio n. 13
0
 public ProtoCopyFileTask(Path path, string @from)
 {
     _path = path;
     _from = ReplaceTokens(from);
 }
Esempio n. 14
0
 public ProtoRenameTask(Path path, string target)
 {
     _path = path;
     _target = ReplaceTokens(target);
 }
 public ProtoWinServiceCreateTask(Path path, string serviceName)
 {
     _path = path;
     _serviceName = ReplaceTokens(serviceName);
 }
Esempio n. 16
0
 public ProtoEmptyFolderTask(Path path, string folderName)
 {
     _path = path;
     _folderName = ReplaceTokens(folderName);
 }
 public ProtoWinServiceCreateTask(Path path, string serviceName, bool errorOnFailure)
 {
     _path = path;
     _errorOnFailure = errorOnFailure;
     _serviceName = ReplaceTokens(serviceName);
 }
 public NServiceBusHostConfigurator(Path path)
 {
     _path = path;
     _action = NServiceBusHost.Action.Install;
 }