F# type provider use case

℡╲_俬逩灬. 提交于 2019-12-05 21:16:27
Phillip Trelford

If typed access to the telemetry API is useful, there are 2 easy approaches:

  1. Code generation
  2. Type Providers

A Type Provider is particularly appropriate if:

  • the data changes frequently
  • the telemetry data is large

With a Type Provider the API can be checked at a specific interval, e.g. each time an application is compiled. Type Providers can be lazy so that only code is generated for the data that is consumed, so if the data is large it would also be a more appropriate choice.

Michael Newton has a great introduction to writing Type Providers: Type Providers from the Ground Up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!