f# - Passing user name and password parameters to the type provider -
I have created a service provider that requires authentication via user name and password. Something like this:
Let's tbl = new demotable All this works well, only one problem is that I want to display this code, so I want the username and password coming from another source - A configuration file, second F # module (a good approach while using scripting) etc. What are my options for passing these standards so that they appear during the performance?
There is a simple way of liters in a file that you do not show:
Module MyInfo = [[[lt; literal & gt;] user = "user name is here" [[litrable & gt;] pwd = "password here" and then in the file that you show:
let tbl = new demotable ()
Comments
Post a Comment