Ejemplo n.º 1
0
        protected string ComputeLogsetHash(string rootLogDirectory, IArtifactProcessor artifactProcessor)
        {
            Log.Info("Computing logset hash..");
            try
            {
                string logsetHash = artifactProcessor.ComputeArtifactHash(rootLogDirectory);

                Log.InfoFormat("Logset hash is '{0}'.", logsetHash);
                return(logsetHash);
            }
            catch (Exception ex)
            {
                Log.FatalFormat("Unable to determine logset hash: {0}", ex.Message);
                throw;
            }
        }
Ejemplo n.º 2
0
        private static string ComputeLogsetHash(string rootLogDirectory, IArtifactProcessor artifactProcessor)
        {
            Log.Info("Computing logset hash..");
            try
            {
                var logsetHash = artifactProcessor.ComputeArtifactHash(rootLogDirectory);

                Log.InfoFormat($"Logset hash is '{logsetHash}'.");
                return(logsetHash);
            }
            catch (Exception ex)
            {
                Log.FatalFormat($"Unable to determine logset hash: {ex.Message}");
                throw;
            }
        }