You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add tuples to the ``summaryModel``\(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
Since we are adding flow through a method, we need to add tuples to the ``summaryModel`` extensible predicate.
279
-
Each tuple defines part of the flow that comprises the total flow through the ``Select`` method.
280
-
The first five values identify the callable (in this case a method) to be modeled as a summary.
281
-
These are the same for both of the rows above as we are adding two summaries for the same method.
282
-
283
-
- The first value ``System.Linq`` is the namespace name.
284
-
- The second value ``Enumerable`` is the class (type) name.
285
-
- The third value ``False`` is a flag that indicates whether or not the summary also applies to all overrides of the method.
286
-
- The fourth value ``Select<TSource,TResult>`` is the method name, along with the type parameters for the method. The names of the generic type parameters provided in the model must match the names of the generic type parameters in the method signature in the source code.
287
-
- The fifth value ``(System.Collections.Generic.IEnumerable<TSource>,System.Func<TSource,TResult>)`` is the method input type signature. The generics in the signature must match the generics in the method signature in the source code.
288
-
289
-
The sixth value should be left empty and is out of scope for this documentation.
290
-
The remaining values are used to define the ``access path``, the ``kind``, and the ``provenance`` (origin) of the summary definition.
291
-
292
-
- The seventh value is the access path to the ``input`` (where data flows from).
293
-
- The eighth value is the access path to the ``output`` (where data flows to).
294
-
295
-
For the first row:
296
-
297
-
- The seventh value is ``Argument[0].Element``, which is the access path to the elements of the qualifier (the elements of the enumerable ``stream`` in the example).
298
-
- The eight value is ``Argument[1].Parameter[0]``, which is the access path to the first parameter of the ``System.Func<TSource,TResult>`` argument of ``Select`` (the lambda parameter ``item`` in the example).
299
-
300
-
For the second row:
301
-
302
-
- The seventh value is ``Argument[1].ReturnValue``, which is the access path to the return value of the ``System.Func<TSource,TResult>`` argument of ``Select`` (the return value of the lambda in the example).
303
-
- The eighth value is ``ReturnValue.Element``, which is the access path to the elements of the return value of ``Select`` (the elements of the enumerable ``lines`` in the example).
304
-
305
-
For the remaining values for both rows:
306
-
307
-
- The ninth value ``value`` is the kind of the flow. ``value`` means that the value is preserved.
308
-
- The tenth value ``manual`` is the provenance of the summary, which is used to identify the origin of the summary.
309
-
310
-
That is, the first row specifies that values can flow from the elements of the qualifier enumerable into the first argument of the function provided to ``Select``. The second row specifies that values can flow from the return value of the function to the elements of the enumerable returned from ``Select``.
311
-
312
253
Example: Accessing the ``Body`` field of an HTTP request
0 commit comments