Esempio n. 1
0
        // **************************************
        // LogUserEvent: ContentActionEvent
        // **************************************
        public static void LogContentEvent(ContentActions action, int contentId)
        {
            if (SystemConfig.LogUserContentActions) {
                var actionEvent = new ContentActionEvent() {
                    ContentActionId = (int)action,
                    ContentId = contentId,
                    UserId = Account.User().UserId,
                    ContentActionEventDate = DateTime.Now,
                    SessionId = CurrentSessionId()
                };

                LogActionEventDelegate<ContentActionEvent> logActionEventDelegate = new LogActionEventDelegate<ContentActionEvent>(LogEvent);

                logActionEventDelegate.BeginInvoke(actionEvent, null, null);
            }
        }
        public ExtendedActionCommandControl()
        {
            InitializeComponent();

            templates.ItemsSource = ContentActions.GetItems();
        }