Changed project names
This commit is contained in:
parent
b4c4aa4010
commit
a29e57e66d
130 changed files with 501 additions and 504 deletions
38
Agent/AmagnoVirtualPrinter.Delivery/Program.cs
Normal file
38
Agent/AmagnoVirtualPrinter.Delivery/Program.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
|
||||
using JetBrains.Annotations;
|
||||
|
||||
using static AmagnoVirtualPrinter.Delivery.Redirector;
|
||||
|
||||
namespace AmagnoVirtualPrinter.Delivery
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
private const string RedirectCmd = "redirect";
|
||||
|
||||
[STAThread]
|
||||
private static void Main([CanBeNull]string[] args)
|
||||
{
|
||||
if (args == null || args.Length < 1) {
|
||||
NotUseful();
|
||||
return;
|
||||
}
|
||||
|
||||
switch (args[0]) {
|
||||
case RedirectCmd: {
|
||||
RedirectToPrinter(args[1], args[2]);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
NotUseful();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void NotUseful()
|
||||
{
|
||||
throw new ArgumentNullException($"Use '{RedirectCmd}'!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue