private static void HandleBatchCompletion(bool success, BatchContextSafeHandle ctx, BatchCompletionDelegate callback) { try { callback(success, ctx); } catch (Exception e) { Logger.Error(e, "Exception occured while invoking batch completion delegate."); } finally { if (ctx != null) { ctx.Dispose(); } } }
private static void HandleBatchCompletion(bool success, BatchContextSafeHandle ctx, BatchCompletionDelegate callback) { try { callback(success, ctx); } catch (Exception e) { Console.WriteLine("Exception occured while invoking completion delegate: " + e); } finally { if (ctx != null) { ctx.Dispose(); } } }
private static void HandleBatchCompletion(bool success, BatchContextSafeHandle ctx, BatchCompletionDelegate callback) { try { callback(success, ctx); } catch (Exception e) { Logger.Error(e, "Exception occured while invoking completion delegate."); } finally { if (ctx != null) { ctx.Dispose(); } } }