This commit is contained in:
Lu Xun 2021-11-14 10:21:20 -08:00
Родитель 42abcffffc
Коммит 4476d10ba9
84 изменённых файлов: 334 добавлений и 450 удалений

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

@ -1,20 +1,10 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: AddFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Function to add integer or concatenate string.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
internal class AddFunc : StandaloneFunc
{

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: AndFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: BinaryFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Threading.Tasks;
/// <summary>

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: ComparisonFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: DynamicPredicateType.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,16 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: EmptyPropertyContext.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Property context that does not have any property.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections;
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: GetFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,15 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: GuanException.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Define base exception generated from the trace tool.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,15 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: GuanExpression.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Wrapper for expression used in trace.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,15 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: GuanFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Define the functions that can be used in TraceExpression.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,20 +1,9 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: GuanPredicate.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Predicate expression used for matching trace records.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
public class GuanPredicate
{
public static readonly GuanPredicate MatchAll = new GuanPredicate(true);

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

@ -1,13 +0,0 @@
//---------------------------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>
/// Interface for exporting object to compound term.
/// </summary>
public interface ICompoundTerm
{
CompoundTerm ToCompoundTerm();
}
}

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: IGuanExpressionContext.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
public interface IGuanExpressionContext

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

@ -1,16 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: IPropertyContext.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Define the interface for retrieving named property.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
public interface IWaitingTask

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,12 +1,10 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json;
internal sealed class JsonPropertyContext : IPropertyContext

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections;

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: Literal.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: NotFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,12 +1,13 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Globalization;
using System.Reflection;
//using Newtonsoft.Json;
using Newtonsoft.Json;
/// <summary>
/// Adapater to expose object properties as a compund term using reflection.
@ -89,8 +90,7 @@ namespace Guan.Logic
return "null";
}
return null;
//return JsonConvert.SerializeObject(this.value, Formatting.Indented);
return JsonConvert.SerializeObject(this.value, Formatting.Indented);
}
}
}

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: OrFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: OutputVariable.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
/// <summary>

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

@ -1,15 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: PropertyMatchFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Function to match/compare trace property.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Text.RegularExpressions;

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

@ -1,15 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: ReleaseAssert.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Helper class for providing assert behavior in production environment.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
public enum ResolveOrder

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
internal class SplitFunc : BinaryFunc

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

@ -1,13 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: StandaloneFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,20 +1,9 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: StrFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
// Purpose:
// Function to convert object to literal string with quotation marks.
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
internal class StringFunc : UnaryFunc
{
public static readonly StringFunc Singleton = new StringFunc();

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
/// <summary>

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
/// <summary>

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,12 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation.
//
// @File: UnaryFunc.cs
//
// @Owner: xunlu
// @Test: xunlu
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,9 +1,9 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;
using System.Collections.Generic;
using System.Text;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Threading.Tasks;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System.Collections.Generic;

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

@ -1,6 +1,7 @@
//---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------------------------------------------------
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Guan.Logic
{
using System;