Ejemplo n.º 1
0
 /// <summary>
 /// Intercept the provider action when changes are applied on each table defined in the configuration schema
 /// </summary>
 public static void InterceptTableChangesApplied(this CoreProvider coreProvider, Func <TableChangesAppliedArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 2
0
 /// <summary>
 /// Intercept the provider action when changes are applied on each table defined in the configuration schema
 /// </summary>
 public static void InterceptTableChangesApplied(this CoreProvider coreProvider, Action <TableChangesAppliedArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 3
0
 /// <summary>
 /// Intercept the provider before it begins a database deprovisioning
 /// </summary>
 public static void InterceptDatabaseDeprovisioning(this CoreProvider coreProvider, Action <DatabaseDeprovisioningArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 4
0
 /// <summary>
 /// Intercept the provider action when changes are selected on each table defined in the configuration schema
 /// </summary>
 public static void OnTableChangesSelected(this CoreProvider coreProvider, Func <TableChangesSelectedArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 5
0
 /// <summary>
 /// Intercept the provider action when session end is called
 /// </summary>
 public static void InterceptSessionEnd(this CoreProvider coreProvider, Action <SessionEndArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 6
0
 /// <summary>
 /// Intercept the provider when schema is readed
 /// </summary>
 public static void InterceptSchema(this CoreProvider coreProvider, Func <SchemaArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 7
0
 public static void SetInterceptor <T>(this CoreProvider coreProvider, Action <T> action) where T : ProgressArgs
 {
     coreProvider.SetInterceptor(new Interceptor <T>(action));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Intercept the provider when an apply change is failing
 /// </summary>
 public static void InterceptApplyChangesFailed(this CoreProvider coreProvider, Action <ApplyChangesFailedArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 9
0
 /// <summary>
 /// Intercept the provider action whenever a transaction is commit
 /// </summary>
 public static void OnTransactionCommit(this CoreProvider coreProvider, Func <TransactionCommitArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 10
0
 /// <summary>
 /// Intercept the provider action when session begin is called
 /// </summary>
 public static void OnSessionBegin(this CoreProvider coreProvider, Func <SessionBeginArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 11
0
 /// <summary>
 /// Intercept the provider action whenever a connection is closed
 /// </summary>
 public static void OnConnectionClose(this CoreProvider coreProvider, Func <ConnectionCloseArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 12
0
 /// <summary>
 /// Intercept the provider action whenever a transaction is opened
 /// </summary>
 public static void OnTransactionOpen(this CoreProvider coreProvider, Func <ConnectionOpenArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 13
0
 /// <summary>
 /// Intercept the provider action when changes are going to be applied on each table defined in the configuration schema
 /// </summary>
 public static void OnTableChangesApplying(this CoreProvider coreProvider, Func <TableChangesApplyingArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 14
0
 /// <summary>
 /// Intercept the provider action when session begin is called
 /// </summary>
 public static void InterceptOutdated(this CoreProvider coreProvider, Action <OutdatedArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 15
0
 /// <summary>
 /// Intercept the provider before it begins a table provisioning
 /// </summary>
 public static void InterceptTabeProvisioning(this CoreProvider coreProvider, Func <TableDeprovisioningArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 16
0
 /// <summary>
 /// Intercept the provider when an apply change is failing
 /// </summary>
 public static void InterceptApplyChangesFailed(this CoreProvider coreProvider, Func <ApplyChangesFailedArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 17
0
 /// <summary>
 /// Intercept the provider after it has provisioned a table
 /// </summary>
 public static void InterceptTabledProvisioned(this CoreProvider coreProvider, Func <TableProvisionedArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 18
0
 /// <summary>
 /// Intercept the provider action when session end is called
 /// </summary>
 public static void InterceptSessionEnd(this CoreProvider coreProvider, Func <SessionEndArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 19
0
 /// <summary>
 /// Intercept the provider after it has provisioned a table
 /// </summary>
 public static void InterceptTabledProvisioned(this CoreProvider coreProvider, Action <TableProvisionedArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 20
0
 public static void SetInterceptor <T>(this CoreProvider coreProvider, Func <T, Task> func) where T : ProgressArgs
 {
     coreProvider.SetInterceptor(new Interceptor <T>(func));
 }
Ejemplo n.º 21
0
 /// <summary>
 /// Intercept the provider action when changes are going to be selected on each table defined in the configuration schema
 /// </summary>
 public static void InterceptTableChangesSelecting(this CoreProvider coreProvider, Action <TableChangesSelectingArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 22
0
 /// <summary>
 /// Intercept the provider when schema is readed
 /// </summary>
 public static void InterceptSchema(this CoreProvider coreProvider, Action <SchemaArgs> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 23
0
 /// <summary>
 /// Intercept the provider action when session begin is called
 /// </summary>
 public static void InterceptOutdated(this CoreProvider coreProvider, Func <OutdatedArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 24
0
 /// <summary>
 /// Intercept the provider after it has deprovisioned a database
 /// </summary>
 public static void InterceptDatabaseDeprovisioned(this CoreProvider coreProvider, Func <DatabaseDeprovisionedArgs, Task> func)
 => coreProvider.SetInterceptor(func);
Ejemplo n.º 25
0
 /// <summary>
 /// Intercept the provider before it begins a database provisioning
 /// </summary>
 public static void OnDatabaseProvisioning(this CoreProvider coreProvider, Func <DatabaseProvisioningArgs, Task> func)
 => coreProvider.SetInterceptor(func);