Merged cV interfaces by request

This commit is contained in:
Eddy Luo 2019-05-29 14:23:39 -07:00
Родитель 6e5fee891f
Коммит 2ecc5e0e73
2 изменённых файлов: 9 добавлений и 20 удалений

Просмотреть файл

@ -6,6 +6,7 @@ namespace Microsoft.CorrelationVector
{
/// <summary>
/// This interface represents the Correlation Vector.
/// The Correlation Vector is a format for tracing and correlating events in large systems.
/// </summary>
public interface ICorrelationVector
{
@ -113,5 +114,13 @@ namespace Microsoft.CorrelationVector
/// No return value. Throws ArgumentException if invalid.
/// </returns>
void Validate(string correlationVector);
/// <summary>
/// Creates a new correlation vector when the total vector length (the <see cref="Value"/>) is longer than its maximum length.
/// Not used in Correlation vectors earlier than V3.
/// </summary>
/// <param name="correlationVector">A correlationVector to be reset.</param>
/// <returns>A Correlation Vector class.</returns>
ICorrelationVector Reset(string correlationVector);
}
}

Просмотреть файл

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.CorrelationVector
{
/// <summary>
/// This interface represents the Correlation Vector v3 and further.
/// This implements W3C interoperability and reset functionality.
/// </summary>
interface ICorrelationVectorV3 : ICorrelationVector
{
/// <summary>
/// Creates a new correlation vector when the total vector length (the <see cref="Value"/>) is longer than its maximum length.
/// </summary>
/// <param name="correlationVector">A correlationVector to be reset.</param>
/// <returns>A Correlation Vector class.</returns>
ICorrelationVectorV3 Reset(string correlationVector);
}
}