Have you taken a look at Esri Content\ExcelDropHandler sample? It has method :
private static async Task ModifyLayerSymbologyFromLyrFileAsync(FeatureLayer featureLayer, string layerFile)
It applies lyrx to featurelayer, but it is possible to create layer from lyrx ant then update CIMDataConnection. If you still interested ask me and I will describe second process more detailed.