コード例 #1
0
 /// <summary>
 /// Intercept the provider action when session begin is called
 /// </summary>
 public static void OnOutdated(this CoreProvider coreProvider, Action <OutdatedArgs> func)
 => coreProvider.On(func);
コード例 #2
0
 /// <summary>
 /// Intercept the provider when an apply change is failing
 /// </summary>
 public static void OnApplyChangesFailed(this CoreProvider coreProvider, Action <ApplyChangesFailedArgs> func)
 => coreProvider.On(func);
コード例 #3
0
 /// <summary>
 /// Intercept the provider action whenever a transaction is commit
 /// </summary>
 public static void OnTransactionCommit(this CoreProvider coreProvider, Action <TransactionCommitArgs> func)
 => coreProvider.On(func);
コード例 #4
0
 public static void SetInterceptor <T>(this CoreProvider coreProvider, Func <T, Task> func) where T : ProgressArgs
 {
     coreProvider.On(new Interceptor <T>(func));
 }
コード例 #5
0
 /// <summary>
 /// Intercept the provider action whenever a transaction is opened
 /// </summary>
 public static void OnTransactionOpen(this CoreProvider coreProvider, Action <TransactionOpenArgs> func)
 => coreProvider.On(func);
コード例 #6
0
 /// <summary>
 /// Intercept the provider action whenever a connection is closed
 /// </summary>
 public static void OnConnectionClose(this CoreProvider coreProvider, Action <ConnectionCloseArgs> func)
 => coreProvider.On(func);
コード例 #7
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 OnTableChangesSelecting(this CoreProvider coreProvider, Action <TableChangesSelectingArgs> func)
 => coreProvider.On(func);
コード例 #8
0
 /// <summary>
 /// Intercept the provider action when changes are applied on each table defined in the configuration schema
 /// </summary>
 public static void OnTableChangesApplied(this CoreProvider coreProvider, Action <TableChangesAppliedArgs> func)
 => coreProvider.On(func);
コード例 #9
0
 /// <summary>
 /// Intercept the provider before it begins a table provisioning
 /// </summary>
 public static void OnTabeProvisioning(this CoreProvider coreProvider, Action <TableDeprovisioningArgs> func)
 => coreProvider.On(func);
コード例 #10
0
 /// <summary>
 /// Intercept the provider after it has provisioned a table
 /// </summary>
 public static void OnTabledProvisioned(this CoreProvider coreProvider, Action <TableProvisionedArgs> func)
 => coreProvider.On(func);
コード例 #11
0
 /// <summary>
 /// Intercept the provider after it has provisioned a database
 /// </summary>
 public static void OnDatabaseProvisioned(this CoreProvider coreProvider, Action <DatabaseProvisionedArgs> func)
 => coreProvider.On(func);
コード例 #12
0
 /// <summary>
 /// Intercept the provider before it begins a database deprovisioning
 /// </summary>
 public static void OnDatabaseDeprovisioning(this CoreProvider coreProvider, Action <DatabaseDeprovisioningArgs> func)
 => coreProvider.On(func);
コード例 #13
0
 /// <summary>
 /// Intercept the provider when schema is readed
 /// </summary>
 public static void OnSchema(this CoreProvider coreProvider, Action <SchemaArgs> func)
 => coreProvider.On(func);
コード例 #14
0
 public static void SetInterceptor <T>(this CoreProvider coreProvider, Action <T> action) where T : ProgressArgs
 {
     coreProvider.On(new Interceptor <T>(action));
 }
コード例 #15
0
 /// <summary>
 /// Intercept the provider action when session end is called
 /// </summary>
 public static void OnSessionEnd(this CoreProvider coreProvider, Action <SessionEndArgs> func)
 => coreProvider.On(func);