misc features
This commit is contained in:
parent
3557d81a55
commit
5857da49d0
@ -661,6 +661,15 @@ namespace MBS.Framework
|
|||||||
{
|
{
|
||||||
// index++;
|
// index++;
|
||||||
// option.Value = args[index];
|
// option.Value = args[index];
|
||||||
|
if (!name.Contains("="))
|
||||||
|
{
|
||||||
|
// already taken care of the true case above
|
||||||
|
if (index + 1 < args.Length)
|
||||||
|
{
|
||||||
|
index++;
|
||||||
|
value = args[index];
|
||||||
|
}
|
||||||
|
}
|
||||||
option.Value = value;
|
option.Value = value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -883,6 +892,7 @@ namespace MBS.Framework
|
|||||||
OnBeforeShutdown(ce);
|
OnBeforeShutdown(ce);
|
||||||
if (ce.Cancel)
|
if (ce.Cancel)
|
||||||
{
|
{
|
||||||
|
Stopping = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -891,7 +901,10 @@ namespace MBS.Framework
|
|||||||
// OnStopping called after setting Stopping to True, otherwise there is no real difference
|
// OnStopping called after setting Stopping to True, otherwise there is no real difference
|
||||||
OnStopping(ce);
|
OnStopping(ce);
|
||||||
if (ce.Cancel)
|
if (ce.Cancel)
|
||||||
|
{
|
||||||
|
Stopping = false;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
StopInternal(exitCode);
|
StopInternal(exitCode);
|
||||||
|
|
||||||
@ -934,5 +947,11 @@ namespace MBS.Framework
|
|||||||
resultCode = 2;
|
resultCode = 2;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual Plugin[] GetAdditionalPluginsInternal()
|
||||||
|
{
|
||||||
|
return new Plugin[0];
|
||||||
|
}
|
||||||
|
public Plugin[] GetAdditionalPlugins() { return GetAdditionalPluginsInternal(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user