I have added itemUpdated functionality to my receiver but i notice that it overide my itemAdded function. whenever i add a new item, my RER is not triggered. But on editing RER is triggered.
EventReceiverDefinitionCreationInformation receiver = new EventReceiverDefinitionCreationInformation();
receiver.EventType = EventReceiverType.ItemAdded;
receiver.EventType=EventReceiverType.ItemUpdated;
//Get WCF URL where this message was handled
OperationContext op = OperationContext.Current;
Message msg = op.RequestContext.RequestMessage;
receiver.ReceiverUrl = msg.Headers.To.ToString();
receiver.ReceiverName = RECEIVER_NAME;
receiver.Synchronization = EventReceiverSynchronization.Synchronous;
//Add the new event receiver to a list in the host web
jobsList.EventReceivers.Add(receiver);
clientContext.ExecuteQuery();