private static void OnDocumentCreated(object sender, DocumentCreatedEventArgs args) { try { var doc = args.Document; if (doc == null || args.IsCancelled() || doc.IsFamilyDocument) { return; } CheckIn(doc); } catch (Exception ex) { Log.AppendLog(LogMessageType.EXCEPTION, ex.Message); } }
private void OnDocumentCreated(object sender, DocumentCreatedEventArgs e) { try { var doc = e.Document; if (doc == null || e.IsCancelled() || doc.IsFamilyDocument) { return; } CheckIn(doc); } catch (Exception ex) { _logger.Fatal(ex); } }