• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class WorkflowLogger

Inheritance
System.Object
ServiceLocator<IWorkflowLogger, WorkflowLogger>
WorkflowLogger
Implements
IWorkflowLogger
Inherited Members
ServiceLocator<IWorkflowLogger, WorkflowLogger>.Instance
ServiceLocator<IWorkflowLogger, WorkflowLogger>.Factory
ServiceLocator<IWorkflowLogger, WorkflowLogger>.SetTestableInstance(IWorkflowLogger)
ServiceLocator<IWorkflowLogger, WorkflowLogger>.ClearInstance()
ServiceLocator<IWorkflowLogger, WorkflowLogger>.GetFactory()
Namespace: DotNetNuke.Entities.Content.Workflow
Assembly: DotNetNuke.dll
Syntax
public class WorkflowLogger : ServiceLocator<IWorkflowLogger, WorkflowLogger>, IWorkflowLogger

Constructors

| Improve this Doc View Source

WorkflowLogger()

Initializes a new instance of the WorkflowLogger class.

Declaration
public WorkflowLogger()

Methods

| Improve this Doc View Source

AddWorkflowLog(Int32, Int32, WorkflowLogType, String, Int32)

Adds a log comment regarding a specific workflow.

Declaration
public void AddWorkflowLog(int contentItemId, int workflowId, WorkflowLogType type, string comment, int userId)
Parameters
Type Name Description
System.Int32 contentItemId

Content item Id related with the log.

System.Int32 workflowId

Workflow Id owner of the log.

WorkflowLogType type

Log Type.

System.String comment

Comment to be added.

System.Int32 userId

User Id who adds the log.

| Improve this Doc View Source

AddWorkflowLog(Int32, Int32, String, String, Int32)

Adds a log comment regarding a specific workflow.

Declaration
public void AddWorkflowLog(int contentItemId, int workflowId, string action, string comment, int userId)
Parameters
Type Name Description
System.Int32 contentItemId

Content item Id related with the log.

System.Int32 workflowId

Workflow Id owner of the log.

System.String action

Custom action related with the log.

System.String comment

Comment to be added.

System.Int32 userId

User Id who adds the log.

| Improve this Doc View Source

GetFactory()

Gets the service locator factory.

Declaration
protected override Func<IWorkflowLogger> GetFactory()
Returns
Type Description
Func<IWorkflowLogger>

A factory function.

Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Entities.Content.Workflow.IWorkflowLogger, DotNetNuke.Entities.Content.Workflow.WorkflowLogger>.GetFactory()
| Improve this Doc View Source

GetWorkflowLogs(Int32, Int32)

Gets all logs regarding a specific workflow.

Declaration
public IEnumerable<WorkflowLog> GetWorkflowLogs(int contentItemId, int workflowId)
Parameters
Type Name Description
System.Int32 contentItemId

Content item Id related with the logs.

System.Int32 workflowId

Workflow Id owner of logs.

Returns
Type Description
IEnumerable<WorkflowLog>

A sequence of WorkflowLog instances.

Implements

IWorkflowLogger

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS