ChainStoreWeb.Services.RemoteEventReceiver1.ProcessOneWayEvent C# (CSharp) Method

ProcessOneWayEvent() public method

Handles events that occur after an action occurs, such as after a user adds an item to a list or deletes an item from a list.
public ProcessOneWayEvent ( SPRemoteEventProperties properties ) : void
properties SPRemoteEventProperties Holds information about the remote event.
return void
        public void ProcessOneWayEvent(SPRemoteEventProperties properties)
        {
            switch (properties.EventType)
            {
                case SPRemoteEventType.ItemUpdated:

                    switch (properties.ItemEventProperties.ListTitle)
                    {
                        case "Expected Shipments":

                            bool updateComplete = TryUpdateInventory(properties);
                            if (updateComplete)
                            {
                                RecordInventoryUpdateLocally(properties);
                            }
                            break;
                    }
                    break;
            }
        }