Game Development Reference
In-Depth Information
Usage();
return 0;
}
else if (option == “/u”)
{
try
{
Assembly assembly = Assembly.GetExecutingAssembly();
RegistrationServices registration
= new RegistrationServices();
registration.UnregisterAssembly(assembly);
SimpleToolExtension.UnregisterServer(“”);
Console.WriteLine(“Extension unregistered successfully”);
}
catch (Exception)
{
Console.WriteLine(“Extension is not currently registered”);
}
}
else if (option == “/r”)
{
try
{
Assembly assembly = Assembly.GetExecutingAssembly();
RegistrationServices registration = new RegistrationServices();
registration.RegisterAssembly(assembly,
AssemblyRegistrationFlags.SetCodeBase);
SimpleToolExtension.RegisterServer(“”);
Console.WriteLine(“Extension registered successfully”);
}
catch (Exception exception)
{
Console.WriteLine(“Extension failed to register: “ +
exception.ToString());
}
}
else
Search Nedrilad ::




Custom Search