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
5d1c8ddf
Commit
5d1c8ddf
authored
Mar 11, 2026
by
Krishna Reddy Tamatam
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into production
# Conflicts: # Program.cs # appsettings.json
parents
4dba9096
39af2a52
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
FTPManagementAPIController.cs
Controllers/FTPManagementAPIController.cs
+0
-0
BaseDataAdapter.cs
Services/BaseDataAdapter.cs
+20
-3
FTPDataAdapter.cs
Services/FTPDataAdapter.cs
+0
-0
No files found.
Controllers/FTPManagementAPIController.cs
View file @
5d1c8ddf
This diff is collapsed.
Click to expand it.
Services/BaseDataAdapter.cs
View file @
5d1c8ddf
...
...
@@ -18,6 +18,8 @@ namespace FTP_Services.Services
#
region
Variables
protected
PetaPoco
.
Database
_repository
;
protected
PetaPoco
.
Database
_adminRepository
;
protected
PetaPoco
.
Database
_mrdRepository
;
//protected IConfiguration _configuration;
protected
AppSettings
_appSettings
;
protected
readonly
log4net
.
ILog
log
=
log4net
.
LogManager
.
GetLogger
(
"BaseDataAdapter"
);
...
...
@@ -28,18 +30,24 @@ namespace FTP_Services.Services
{
log
.
Debug
(
"BaseDataAdapter() called"
);
this
.
_appSettings
=
appSettings
;
string
constr
=
_appSettings
.
ConnectionString
;
log
.
Debug
(
"Connection String -"
+
constr
);
_auth_user_id
=
0
;
_user_id
=
0
;
_repository
=
new
PetaPoco
.
Database
(
constr
,
"npgsql"
);
string
Adminconstr
=
_appSettings
.
AdminConnectionString
;
log
.
Debug
(
"
Connection String -"
+
constr
);
log
.
Debug
(
"
Admin Connection String -"
+
Admin
constr
);
_auth_user_id
=
0
;
_user_id
=
0
;
_repository
=
new
PetaPoco
.
Database
(
Adminconstr
,
"npgsql"
);
_adminRepository
=
new
PetaPoco
.
Database
(
Adminconstr
,
"npgsql"
);
string
MRDConstr
=
_appSettings
.
ConnectionString_MRD
;
log
.
Debug
(
"MRD Connection String -"
+
MRDConstr
);
_auth_user_id
=
0
;
_user_id
=
0
;
_mrdRepository
=
new
PetaPoco
.
Database
(
MRDConstr
,
"npgsql"
);
}
public
void
Dispose
()
...
...
@@ -47,6 +55,14 @@ namespace FTP_Services.Services
if
(
this
.
_repository
.
Connection
!=
null
)
this
.
_repository
.
Connection
.
Close
();
this
.
_repository
.
Dispose
();
if
(
this
.
_adminRepository
.
Connection
!=
null
)
this
.
_adminRepository
.
Connection
.
Close
();
this
.
_adminRepository
.
Dispose
();
if
(
this
.
_mrdRepository
.
Connection
!=
null
)
this
.
_mrdRepository
.
Connection
.
Close
();
this
.
_mrdRepository
.
Dispose
();
}
}
}
\ No newline at end of file
Services/FTPDataAdapter.cs
View file @
5d1c8ddf
This diff is collapsed.
Click to expand it.
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