1. mike S
  2. PowerServer
  3. Friday, 31 May 2024 16:28 PM UTC

looking for documenation on the powerserver c# objects.

specifically, the details on : AddPowerServerAppConfig

 

what i want to do is use my own code to build the connection strings for powerserver (many databases/servers) so i can use a username/password that i store in azure key vault for production.  That allows for things like password rotation.  

Ideally i could use my own tables for getting the server/database name rather than PowerServer_ConnectionConfig table that is built in.

 

Is this possible with the current powerserver R3 c# objects?

I do this sort of things already for my own web api's i built with c#, but i have no idea how powerserver connects to the databases.

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Monday, 3 June 2024 02:07 AM UTC
  2. PowerServer
  3. # 1

Hi Mike,

Please see if this solution helps you: How to change database password in the cache dynamically when Web API is running | Appeon

You should be able to modify other properties like the password property.

Regards, Logan

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 31 May 2024 17:03 PM UTC
  2. PowerServer
  3. # 2

Hi Mike;

  For that approach, I would suggest using SnapDevelop that comes with PB Cloud Edition (like Visual Studio) to build such Web API's (like you did in C#) to ensure maximum flexibility for what you seem to want to do. In the Snap route vs VS C# approach though would have the bonus of using the C# .NET Data Window and DataStore that Snap provide functionality wise to the C# code base. That's of course just one take (off the top of my head) for address this design but, at this time I have limited information about your full needs. So just my $0.02.

Regards .. Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.