Exemplo n.º 1
0
 public IisProtoTask(string websiteName, Path path)
 {
     _path = path;
     WebsiteName = websiteName;
     ManagedRuntimeVersion = Tasks.Iis.ManagedRuntimeVersion.V2;
     AuthenticationToSet = new Dictionary<IISAuthenticationMode, bool>();
 }
Exemplo n.º 2
0
 public ProtoExistsTask(Path path, string reason, bool shouldAbortOnError)
     : base()
 {
     _path = path;
      _reason = reason;
      _shouldAbortOnError = shouldAbortOnError;
 }
Exemplo 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();
 }
Exemplo n.º 4
0
 public TopshelfConfigurator(Path path)
 {
     _path = path;
 }
Exemplo n.º 5
0
 public ProtoCopyDirectoryTask(Path path)
 {
     _path = path;
 }
Exemplo n.º 6
0
 public IisProtoTask(string websiteName, Path path)
 {
     _path = path;
     WebsiteName = websiteName;
     ManagedRuntimeVersion = Tasks.Iis.ManagedRuntimeVersion.V2;
 }
 public NServiceBusHostConfigurator(Path path)
 {
     _path = path;
 }
Exemplo n.º 8
0
 public RavenDbConfigurator(Path path)
 {
     _path = path;
     _innerTasks = new List<BaseProtoTask>();
 }
 public NServiceBusHostConfigurator(Path path)
 {
     _path = path;
     _args = new NServiceBusHostExeArgs();
 }
Exemplo n.º 10
0
 public ProtoCopyFileTask(Path path, string @from, bool isRemote = false)
 {
     _from = ReplaceTokens(from);
     _isRemote = isRemote;
 }
Exemplo n.º 11
0
 public ProtoExistsTask(Path path, string reason) : this(path, reason, false) { }
Exemplo n.º 12
0
 public ProtoEncryptAppConfigTask(Path path, string whereIsTheConfig)
 {
     _where = ReplaceTokens(whereIsTheConfig);
     _path = path;
 }
Exemplo n.º 13
0
 public ProtoCopyFileTask(Path path, string @from)
 {
     _path = path;
     _from = ReplaceTokens(from);
 }
Exemplo n.º 14
0
 public ProtoRenameTask(Path path, string target)
 {
     _path = path;
     _target = ReplaceTokens(target);
 }
Exemplo n.º 15
0
 public ProtoWinServiceCreateTask(Path path, string serviceName)
 {
     _path = path;
     _serviceName = ReplaceTokens(serviceName);
 }
Exemplo 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;
 }