public static string BuildDotNetNuGetPush(string aTokenizedCommandLine) { StringBuilder vResult = new StringBuilder(aTokenizedCommandLine); vResult .Replace(PACKAGE_PATH.AsToken(), PackagePath) .Replace(SOURCE.AsToken(), Source) .Replace(API_KEY.AsToken(), ApiKey) .Replace(SYMBOL_SOURCE.AsToken(), SymbolSource) .Replace(SYMBOL_API_KEY.AsToken(), SymbolApiKey) .Replace(TIMEOUT.AsToken(), Timeout) .Replace(VERBOSITY_DOTNET.AsToken(), VerbosityDotNet); return(vResult.ToString()); }
/// <summary> /// Converts Blackwood TIMEOUT value to TradeHub TIF value /// </summary> /// <param name="timeout">Blackwood TIMEOUT</param> /// <returns></returns> public static string GetTradeHubOrderTif(TIMEOUT timeout) { switch (timeout) { case TIMEOUT.TIMEOUT_DAY: return(Constants.OrderTif.DAY); case TIMEOUT.TIMEOUT_GTC: return(Constants.OrderTif.GTC); case TIMEOUT.TIMEOUT_GTX: return(Constants.OrderTif.GTX); case TIMEOUT.TIMEOUT_IOC: return(Constants.OrderTif.IOC); case TIMEOUT.TIMEOUT_OPG: return(Constants.OrderTif.OPG); default: return(Constants.OrderTif.NONE); } }
/// \api #MqProcessEvent, wait for \e TIMEOUT seconds and process event or raise an error public void ProcessEvent( TIMEOUT timeout, WAIT wait) { ErrorMqToCsWithCheck(MqProcessEvent(context, (long)timeout, (int)wait)); }
/// \api #MqProcessEvent, wait for \e TIMEOUT seconds and process event or raise an error public void ProcessEvent(TIMEOUT timeout, WAIT wait) { ErrorMqToCsWithCheck(MqProcessEvent(context, (long)timeout, (int)wait)); }