Search Results for

    Show / Hide Table of Contents

    Interface ISpecficVenflowCommandBuilder<TCommand, TLogResult>

    Represents a generic command builder for all CRUD operations to finalize the configuration.

    Namespace: Venflow.Commands
    Assembly: Venflow.dll
    Syntax
    public interface ISpecficVenflowCommandBuilder<out TCommand, out TLogResult>
        where TCommand : class where TLogResult : class
    Type Parameters
    Name Description
    TCommand

    The type of the command which is being configured.

    TLogResult

    The type of the command which is being configured after configuring the loggers.

    Methods

    | Improve this Doc View Source

    Build()

    Finalizes the ongoing configuration process and builds the command.

    Declaration
    TCommand Build()
    Returns
    Type Description
    TCommand

    The built command.

    | Improve this Doc View Source

    Log(Boolean)

    Determines whether or not to log the command to the provided loggers.

    Declaration
    TLogResult Log(bool shouldLog = true)
    Parameters
    Type Name Description
    Boolean shouldLog

    Determines if this command should be logged. This is helpful, if you configured the default logging behavior to be true.

    Returns
    Type Description
    TLogResult

    An object that can be used to further configure the operation.

    Remarks

    You can configure the loggers in the Configure(DatabaseConfigurationOptionsBuilder) method with the LogTo(LoggerCallback) methods.

    | Improve this Doc View Source

    LogTo(LoggerCallback)

    Logs the command to the provided logger.

    Declaration
    TLogResult LogTo(LoggerCallback logger)
    Parameters
    Type Name Description
    LoggerCallback logger

    The logger which is being used for this command.

    Returns
    Type Description
    TLogResult

    An object that can be used to further configure the operation.

    Remarks

    Be aware, that once you configure a logger on a command, the global configured loggers won't be executed for this command.

    | Improve this Doc View Source

    LogTo(LoggerCallback[])

    Logs the command to the provided loggers.

    Declaration
    TLogResult LogTo(params LoggerCallback[] loggers)
    Parameters
    Type Name Description
    LoggerCallback[] loggers

    The loggers which are being used for this command.

    Returns
    Type Description
    TLogResult

    An object that can be used to further configure the operation.

    Remarks

    Be aware, that once you configure one or more loggers on a command, the global configured loggers won't be executed for this command.

    Theme

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 Twenty