public static async Task <T> FindEntryWithLogsAsync <T>(this IBoundClient <T> boundClient, ILogger logger) where T : class, IDynamicsEntity
        {
            logger.LogInformation($"Executing Dynamics Query: {await boundClient.GetCommandTextAsync()}");
            var result = await boundClient.FindEntryAsync();

            return(result);
        }
예제 #2
0
        public async Task <T> FirstAsync()
        {
            try
            {
                string command = await bounder.GetCommandTextAsync();

                var result = await bounder.FindEntryAsync();

                Dispose();
                return(result);
            }
            catch (Exception ex)
            {
                //configuration.ExceptionTrace?.Invoke(new ExceptionObject() { Exception = ex, ODataCommand = await bounder.GetCommandTextAsync() });
                return(null);
            }
        }