Exemple #1
0
 /// <summary>
 /// Intercept the provider when a column is creating
 /// </summary>
 public static Guid OnColumnCreating(this BaseOrchestrator orchestrator, Func <TableCreatingArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider after it has provisioned a database
 /// </summary>
 public static Guid OnProvisioned(this BaseOrchestrator orchestrator, Action <ProvisionedArgs> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider after it has deprovisioned a database
 /// </summary>
 public static Guid OnDeprovisioned(this BaseOrchestrator orchestrator, Func <DeprovisionedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
Exemple #4
0
 /// <summary>
 /// Intercept the provider when schema is loading
 /// </summary>
 public static Guid OnSchemaLoading(this BaseOrchestrator orchestrator, Func <SchemaLoadingArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// Intercept the provider action when a provider has cleaned metadata
 /// </summary>
 public static Guid OnMetadataCleaned(this BaseOrchestrator orchestrator, Func <MetadataCleanedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider when a Stored Procedure is dropping
 /// </summary>
 public static Guid OnStoredProcedureDropping(this BaseOrchestrator orchestrator, Action <StoredProcedureDroppingArgs> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider if the local setup is conflicting with the remote setup
 /// </summary>
 public static Guid OnConflictingSetup(this BaseOrchestrator orchestrator, Func <ConflictingSetupArgs, Task> action)
 => orchestrator.AddInterceptor(action);
Exemple #8
0
 /// <summary>
 /// Intercept the provider when a table is dropping
 /// </summary>
 public static Guid OnTableDropping(this BaseOrchestrator orchestrator, Func <TableDroppingArgs, Task> action)
 => orchestrator.AddInterceptor(action);
Exemple #9
0
 /// <summary>
 /// Intercept the provider when a table is dropped
 /// </summary>
 public static Guid OnTableDropped(this BaseOrchestrator orchestrator, Action <TableDroppedArgs> action)
 => orchestrator.AddInterceptor(action);
Exemple #10
0
 /// <summary>
 /// Intercept the provider when database schema is created (works only on SQL Server)
 /// </summary>
 public static Guid OnSchemaNameCreated(this BaseOrchestrator orchestrator, Func <SchemaNameCreatedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
Exemple #11
0
 /// <summary>
 /// Intercept the provider when a table is creating
 /// </summary>
 public static Guid OnTableCreating(this BaseOrchestrator orchestrator, Action <TableCreatingArgs> action)
 => orchestrator.AddInterceptor(action);
Exemple #12
0
 /// Intercept the provider action when a database has read a timestamp
 /// </summary>
 public static Guid OnLocalTimestampLoaded(this BaseOrchestrator orchestrator, Func <LocalTimestampLoadedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
Exemple #13
0
 /// <summary>
 /// Intercept the provider action when a database is reading a timestamp
 /// </summary>
 public static Guid OnLocalTimestampLoading(this BaseOrchestrator orchestrator, Action <LocalTimestampLoadingArgs> action)
 => orchestrator.AddInterceptor(action);
Exemple #14
0
 /// <summary>
 /// Intercept the provider action when a all changes have been applied on a datasource table
 /// </summary>
 public static Guid OnTableChangesApplied(this BaseOrchestrator orchestrator, Func <TableChangesAppliedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider when a trigger is dropped
 /// </summary>
 public static Guid OnTriggerDropped(this BaseOrchestrator orchestrator, Func <TriggerDroppedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider action when a sync row is about to be serialized in a batch part info after have been selected from the data source
 /// </summary>
 public static Guid OnRowsChangesSelected(this BaseOrchestrator orchestrator, Func <RowsChangesSelectedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider when a Stored Procedure is created
 /// </summary>
 public static Guid OnStoredProcedureCreated(this BaseOrchestrator orchestrator, Action <StoredProcedureCreatedArgs> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider action when changes are going to be applied on each table defined in the configuration schema
 /// </summary>
 public static Guid OnDatabaseChangesApplying(this BaseOrchestrator orchestrator, Func <DatabaseChangesApplyingArgs, Task> func)
 => orchestrator.AddInterceptor(func);
 /// <summary>
 /// Intercept the provider when a Stored Procedure is dropped
 /// </summary>
 public static Guid OnStoredProcedureDropped(this BaseOrchestrator orchestrator, Func <StoredProcedureDroppedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Occurs when changes are going to be queried on the local database
 /// </summary>
 public static Guid OnDatabaseChangesSelecting(this BaseOrchestrator orchestrator, Action <DatabaseChangesSelectingArgs> func)
 => orchestrator.AddInterceptor(func);
Exemple #21
0
 /// <summary>
 /// Intercept the provider when schema is loaded
 /// </summary>
 public static Guid OnSchemaLoaded(this BaseOrchestrator orchestrator, Action <SchemaLoadedArgs> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Occurs when changes have been retrieved from the local database
 /// </summary>
 public static Guid OnDatabaseChangesSelected(this BaseOrchestrator orchestrator, Func <DatabaseChangesSelectedArgs, Task> func)
 => orchestrator.AddInterceptor(func);
 /// <summary>
 /// Intercept the provider action when a provider is cleaning metadata
 /// </summary>
 public static Guid OnMetadataCleaning(this BaseOrchestrator orchestrator, Action <MetadataCleaningArgs> action)
 => orchestrator.AddInterceptor(action);
Exemple #24
0
 /// <summary>
 /// Intercept the provider action when a database is out dated
 /// </summary>
 public static Guid OnOutdated(this BaseOrchestrator orchestrator, Func <OutdatedArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider before it begins a database provisioning
 /// </summary>
 public static Guid OnProvisioning(this BaseOrchestrator orchestrator, Func <ProvisioningArgs, Task> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider when a trigger is created
 /// </summary>
 public static Guid OnTriggerCreated(this BaseOrchestrator orchestrator, Action <TriggerCreatedArgs> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider before it begins a database deprovisioning
 /// </summary>
 public static Guid OnDeprovisioning(this BaseOrchestrator orchestrator, Action <DeprovisioningArgs> action)
 => orchestrator.AddInterceptor(action);
 /// <summary>
 /// Intercept the provider when a trigger is dropping
 /// </summary>
 public static Guid OnTriggerDropping(this BaseOrchestrator orchestrator, Action <TriggerDroppingArgs> action)
 => orchestrator.AddInterceptor(action);
Exemple #29
0
 /// <summary>
 /// Intercept the provider before it begins a database provisioning
 /// </summary>
 public static Guid OnGettingOperation(this BaseOrchestrator orchestrator, Func <OperationArgs, Task> action)
 => orchestrator.AddInterceptor(action);
Exemple #30
0
 /// <summary>
 /// Intercept the provider action when a scope is saving
 /// </summary>
 public static Guid OnScopeSaving(this BaseOrchestrator orchestrator, Action <ScopeSavingArgs> action)
 => orchestrator.AddInterceptor(action);