Definition
Assembly: CloudNimble.EasyAF.Restier.dll Namespace: CloudNimble.EasyAF.Restier Inheritance: System.ObjectSyntax
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
Parameters
| Name | Type | Description |
|---|---|---|
entityName | string | The name of the entity type being operated on. |
operation | CloudNimble.EasyAF.Restier.RestierOperationType | The 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
Parameters
| Name | Type | Description |
|---|---|---|
entity | CloudNimble.EasyAF.Core.DbObservableObject | The entity being operated on. |
operation | CloudNimble.EasyAF.Restier.RestierOperationType | The 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
Parameters
| Name | Type | Description |
|---|---|---|
entity | T | The identifiable entity being operated on. |
operation | CloudNimble.EasyAF.Restier.RestierOperationType | The type of operation being performed. |
Type Parameters
T- The type of entity that implements IIdentifiable.TId- The type of the entity’s identifier.