public static IAbstractionContext Decision(this IAbstractionLayer layer, object description) { return (layer .SetItem(AbstractionProperties.Category, "Flow") .SetItem(AbstractionProperties.Snapshot, new { Decision = description })); }
/// <summary> /// Logs properties. The dump must be an anonymous type with at least one property: new { foo[, bar] } /// </summary> public static IAbstractionContext Property(this IAbstractionLayer layer, object snapshot) { return (layer .SetItem(AbstractionProperties.Category, nameof(Property)) .SetItem(AbstractionProperties.Snapshot, snapshot)); }
/// <summary> /// Initializes Routine category. /// </summary> public static IAbstractionCategory Routine(this IAbstractionLayer layer, string identifier) { return (layer .SetItem(AbstractionProperties.Category, nameof(Routine)) .SetItem(AbstractionProperties.Identifier, identifier)); }