C# Class Simple.Migrations.IntegrationTests.NUnitLogger

Inheritance: ILogger
Afficher le fichier Open project: canton7/SimpleMigrations

Méthodes publiques

Méthode Description
BeginMigration ( MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration is started

BeginSequence ( MigrationData from, MigrationData to ) : void

Invoked when a sequence of migrations is started

EndMigration ( MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration is completed successfully

EndMigrationWithError ( Exception exception, MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration fails with an error

EndSequence ( MigrationData from, MigrationData to ) : void

Invoked when a sequence of migrations is completed successfully

EndSequenceWithError ( Exception exception, MigrationData from, MigrationData currentVersion ) : void

Invoked when a sequence of migrations fails with an error

Info ( string message ) : void

Invoked when another informative message should be logged

LogSql ( string message ) : void

Invoked when SQL being executed should be logged

NUnitLogger ( string name ) : NUnit.Framework

Private Methods

Méthode Description
WriteError ( string message ) : void
WriteHeader ( string message ) : void
WriteWarning ( string message ) : void

Method Details

BeginMigration() public méthode

Invoked when an individual migration is started
public BeginMigration ( MigrationData migration, MigrationDirection direction ) : void
migration SimpleMigrations.MigrationData Migration being started
direction MigrationDirection Direction of the migration
Résultat void

BeginSequence() public méthode

Invoked when a sequence of migrations is started
public BeginSequence ( MigrationData from, MigrationData to ) : void
from SimpleMigrations.MigrationData Migration being migrated from
to SimpleMigrations.MigrationData Migration being migrated to
Résultat void

EndMigration() public méthode

Invoked when an individual migration is completed successfully
public EndMigration ( MigrationData migration, MigrationDirection direction ) : void
migration SimpleMigrations.MigrationData Migration which completed
direction MigrationDirection Direction of the migration
Résultat void

EndMigrationWithError() public méthode

Invoked when an individual migration fails with an error
public EndMigrationWithError ( Exception exception, MigrationData migration, MigrationDirection direction ) : void
exception System.Exception Exception which was encountered
migration SimpleMigrations.MigrationData Migration which failed
direction MigrationDirection Direction of the migration
Résultat void

EndSequence() public méthode

Invoked when a sequence of migrations is completed successfully
public EndSequence ( MigrationData from, MigrationData to ) : void
from SimpleMigrations.MigrationData Migration which was migrated from
to SimpleMigrations.MigrationData Migration which was migrated to
Résultat void

EndSequenceWithError() public méthode

Invoked when a sequence of migrations fails with an error
public EndSequenceWithError ( Exception exception, MigrationData from, MigrationData currentVersion ) : void
exception System.Exception Exception which was encountered
from SimpleMigrations.MigrationData Migration which was migrated from
currentVersion SimpleMigrations.MigrationData Last successful migration which was applied
Résultat void

Info() public méthode

Invoked when another informative message should be logged
public Info ( string message ) : void
message string Message to be logged
Résultat void

LogSql() public méthode

Invoked when SQL being executed should be logged
public LogSql ( string message ) : void
message string SQL to log
Résultat void

NUnitLogger() public méthode

public NUnitLogger ( string name ) : NUnit.Framework
name string
Résultat NUnit.Framework