Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Restier.dll Namespace: CloudNimble.EasyAF.Restier Inheritance: System.Object

Syntax

CloudNimble.EasyAF.Restier.RestierHelpers

Summary

Provides utility methods for logging Restier operations and entity lifecycle events. Supports logging for both named entities and identifiable entities with detailed operation tracking.

Methods

LogOperation

Logs a Restier operation for the specified entity type name. Formats the log message with appropriate verb tense based on operation type.

Syntax

public static void LogOperation(string entityName, CloudNimble.EasyAF.Restier.RestierOperationType operation)

Parameters

NameTypeDescription
entityNamestringThe name of the entity type being operated on.
operationCloudNimble.EasyAF.Restier.RestierOperationTypeThe type of operation being performed.

LogOperation

Logs a Restier operation for the specified DbObservableObject entity. Extracts the entity type name and delegates to the string-based logging method.

Syntax

public static void LogOperation(CloudNimble.EasyAF.Core.DbObservableObject entity, CloudNimble.EasyAF.Restier.RestierOperationType operation)

Parameters

NameTypeDescription
entityCloudNimble.EasyAF.Core.DbObservableObjectThe entity being operated on.
operationCloudNimble.EasyAF.Restier.RestierOperationTypeThe type of operation being performed.

LogOperation

Logs a Restier operation for the specified identifiable entity, including the entity’s ID in the log message. Provides more detailed logging by including the specific entity identifier.

Syntax

public static void LogOperation<T, TId>(T entity, CloudNimble.EasyAF.Restier.RestierOperationType operation) where T : CloudNimble.EasyAF.Core.IIdentifiable<TId> where TId : struct, System.ValueType

Parameters

NameTypeDescription
entityTThe identifiable entity being operated on.
operationCloudNimble.EasyAF.Restier.RestierOperationTypeThe type of operation being performed.

Type Parameters

  • T - The type of entity that implements IIdentifiable.
  • TId - The type of the entity’s identifier.