예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }