//Must be on the QueuedTask
var url = "https://geoeventsample1.esri.com:6443/arcgis/rest/services/AirportTraffics/StreamServer";
var lyrCreateParam = new FeatureLayerCreationParams(new Uri(url))
{
IsVisible = true,
//At 2.x - DefinitionFilter = new CIMDefinitionFilter()
//{
// DefinitionExpression = "RWY = '29L'",
// Name = "Runway"
//}
DefinitionQuery = new DefinitionQuery(whereClause: "RWY = '29L'", name: "Runway")
};
var streamLayer = LayerFactory.Instance.CreateLayer<StreamLayer>(lyrCreateParam, map);