Example #1
0
 internal static string GetParamStringForLog(RemoteEditLog log, StorageInfo remoteStorageInfo
                                             )
 {
     return("getedit=1&" + StartTxidParam + "=" + log.GetStartTxId() + "&" + EndTxidParam
            + "=" + log.GetEndTxId() + "&" + StorageinfoParam + "=" + remoteStorageInfo.ToColonSeparatedString
                ());
 }
Example #2
0
        internal static string GetParamStringForImage(NNStorage.NameNodeFile nnf, long txid
                                                      , StorageInfo remoteStorageInfo)
        {
            string imageType = nnf == null ? string.Empty : "&" + ImageFileType + "=" + nnf.ToString
                                   ();

            return("getimage=1&" + TxidParam + "=" + txid + imageType + "&" + StorageinfoParam
                   + "=" + remoteStorageInfo.ToColonSeparatedString());
        }