Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HIMSScannerService
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HIMSScanner
HIMSScannerService
Commits
4d95c762
Commit
4d95c762
authored
Mar 03, 2026
by
Krishna Reddy Tamatam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit to Staging
parent
aa0cf840
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
8 deletions
+12
-8
FTPManagementAPIController.cs
Controllers/FTPManagementAPIController.cs
+0
-1
Program.cs
Program.cs
+1
-1
BaseDataAdapter.cs
Services/BaseDataAdapter.cs
+8
-3
FTPDataAdapter.cs
Services/FTPDataAdapter.cs
+2
-2
appsettings.json
appsettings.json
+1
-1
No files found.
Controllers/FTPManagementAPIController.cs
View file @
4d95c762
...
@@ -369,7 +369,6 @@ namespace FTP_Services.Services.Controllers
...
@@ -369,7 +369,6 @@ namespace FTP_Services.Services.Controllers
log
.
Debug
(
"GetConfigValues ==> "
);
log
.
Debug
(
"GetConfigValues ==> "
);
try
try
{
{
_appSettings
.
ConnectionString
=
_appSettings
.
AdminConnectionString
;
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
ConfigValues
(
CompanyId
,
DatabaseName
);
List
<
object
>?
RequestsList
=
adapter
.
ConfigValues
(
CompanyId
,
DatabaseName
);
_appSettings
.
ConnectionString
=
DatabaseName
;
_appSettings
.
ConnectionString
=
DatabaseName
;
...
...
Program.cs
View file @
4d95c762
...
@@ -140,7 +140,7 @@ else
...
@@ -140,7 +140,7 @@ else
{
{
//app.Run(); //For Test Site
//app.Run(); //For Test Site
//app.Run("http://*:4708"); // For Production
//app.Run("http://*:4708"); // For Production
app
.
Run
(
"http://*:4709"
);
// For
Admin
app
.
Run
(
"http://*:4709"
);
// For
Staging
}
}
...
...
Services/BaseDataAdapter.cs
View file @
4d95c762
...
@@ -28,18 +28,18 @@ namespace FTP_Services.Services
...
@@ -28,18 +28,18 @@ namespace FTP_Services.Services
{
{
log
.
Debug
(
"BaseDataAdapter() called"
);
log
.
Debug
(
"BaseDataAdapter() called"
);
this
.
_appSettings
=
appSettings
;
this
.
_appSettings
=
appSettings
;
string
constr
=
_appSettings
.
ConnectionString
;
string
constr
=
_appSettings
.
ConnectionString
;
log
.
Debug
(
"Connection String -"
+
constr
);
log
.
Debug
(
"Connection String -"
+
constr
);
_auth_user_id
=
0
;
_auth_user_id
=
0
;
_user_id
=
0
;
_user_id
=
0
;
_repository
=
new
PetaPoco
.
Database
(
constr
,
"npgsql"
);
_repository
=
new
PetaPoco
.
Database
(
constr
,
"npgsql"
);
string
Adminconstr
=
_appSettings
.
AdminConnectionString
;
string
Adminconstr
=
_appSettings
.
AdminConnectionString
;
log
.
Debug
(
"Connection String -"
+
constr
);
log
.
Debug
(
"Connection String -"
+
Admin
constr
);
_auth_user_id
=
0
;
_auth_user_id
=
0
;
_user_id
=
0
;
_user_id
=
0
;
_
r
epository
=
new
PetaPoco
.
Database
(
Adminconstr
,
"npgsql"
);
_
adminR
epository
=
new
PetaPoco
.
Database
(
Adminconstr
,
"npgsql"
);
}
}
public
void
Dispose
()
public
void
Dispose
()
...
@@ -47,6 +47,10 @@ namespace FTP_Services.Services
...
@@ -47,6 +47,10 @@ namespace FTP_Services.Services
if
(
this
.
_repository
.
Connection
!=
null
)
if
(
this
.
_repository
.
Connection
!=
null
)
this
.
_repository
.
Connection
.
Close
();
this
.
_repository
.
Connection
.
Close
();
this
.
_repository
.
Dispose
();
this
.
_repository
.
Dispose
();
if
(
this
.
_adminRepository
.
Connection
!=
null
)
this
.
_adminRepository
.
Connection
.
Close
();
this
.
_adminRepository
.
Dispose
();
}
}
}
}
}
}
\ No newline at end of file
Services/FTPDataAdapter.cs
View file @
4d95c762
...
@@ -560,9 +560,9 @@ namespace FTP_Services.Services
...
@@ -560,9 +560,9 @@ namespace FTP_Services.Services
List
<
object
>?
ConfigValuesData
=
null
;
List
<
object
>?
ConfigValuesData
=
null
;
try
try
{
{
using
(
var
tx
=
_
r
epository
.
GetTransaction
())
using
(
var
tx
=
_
adminR
epository
.
GetTransaction
())
{
{
ConfigValuesData
=
_
r
epository
.
Fetch
<
object
>(
ConfigValuesData
=
_
adminR
epository
.
Fetch
<
object
>(
"SELECT '"
+
DatabaseName
+
"' AS \"DatabaseName\", * FROM \"SPScanTool_GetScanConfigByCompanyId\"(@0)"
,
CompanyId
"SELECT '"
+
DatabaseName
+
"' AS \"DatabaseName\", * FROM \"SPScanTool_GetScanConfigByCompanyId\"(@0)"
,
CompanyId
);
);
...
...
appsettings.json
View file @
4d95c762
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"Secret"
:
"A78E-F7FA-B0FD-DAA45BB866CD-AA73D560-DACC-978C-4A9B-9924-5DE7E33F0040-GCD00"
,
"Secret"
:
"A78E-F7FA-B0FD-DAA45BB866CD-AA73D560-DACC-978C-4A9B-9924-5DE7E33F0040-GCD00"
,
"ConnectionString"
:
"SERVER=10.11.12.158;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;Database=FF_Backup_02032026;Timeout=1000"
,
"ConnectionString"
:
"SERVER=10.11.12.158;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;Database=FF_Backup_02032026;Timeout=1000"
,
"AdminConnectionString"
:
"SERVER=10.11.12.106;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;database=CareaxesAdmin;Timeout=1000"
,
"AdminConnectionString"
:
"SERVER=10.11.12.106;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;database=CareaxesAdmin;Timeout=1000"
,
"ConnectionString_MRD"
:
"SERVER=10.11.12.158;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;Database=FF_MRD;Timeout=1000"
,
"ConnectionString_MRD"
:
"SERVER=10.11.12.158;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;Database=FF_
Backup_
MRD;Timeout=1000"
,
"FTPConfiguration"
:
{
"FTPConfiguration"
:
{
"Username"
:
"admin"
,
"Username"
:
"admin"
,
"Password"
:
"Fmh@xp@rt01"
,
"Password"
:
"Fmh@xp@rt01"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment