This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| S2.define('select2/data/remoteQuery', [ | |
| './array', | |
| '../utils', | |
| 'jquery' | |
| ], function (ArrayAdapter, Utils, $) { | |
| function RemoteQueryAdapter($element, options) { | |
| this.ajaxOptions = this._applyDefaults(options.get('remoteQuery')); | |
| if (this.ajaxOptions.processResults != null) { | |
| this.processResults = this.ajaxOptions.processResults; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DataRepository<T> : IDataRepository<T> | |
| where T : class, new() | |
| { | |
| private DbContext context; | |
| Logger log = new Logger(); | |
| public DataRepository() | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class CSVHelper | |
| { | |
| /// <summary> | |
| /// Usage: | |
| /// CSVHelper.ToCsv( | |
| /// ",", | |
| /// resultSet, | |
| /// new List<KeyValuePair<string, string>> | |
| /// { | |
| /// new KeyValuePair<string,string>("caf_no", "'") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Retrier<TResult> | |
| { | |
| /// <summary> | |
| /// Retry to perform an operation/function | |
| /// </summary> | |
| /// <param name="func">Function to retry</param> | |
| /// <param name="maxRetries">Maximum retires</param> | |
| /// <param name="delayInMilliseconds">Delay on millies, 0 by default</param> | |
| /// <returns>Result of the Function</returns> | |
| public TResult TryBool(Func<TResult> func, int maxRetries, int delayInMilliseconds = 0) |
NewerOlder