コード例 #1
0
        public Event <object> VerifyEvent(Event <object> serverSideEvent)
        {
            if (ActionUtils.IsValidStatusAction(serverSideEvent.Action) ||
                ActionUtils.IsValidElevAction(serverSideEvent.Action))
            {
                serverSideEvent.Status = Status.ADAPTER_ACCEPTED;
            }
            else
            {
                serverSideEvent.Status = Status.ADAPTER_REJECTED;
            }

            serverSideEvent.Data?.Clear();

            PostStatus(serverSideEvent);

            return(serverSideEvent);
        }