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
39af2a52
Commit
39af2a52
authored
Mar 11, 2026
by
Krishna Reddy Tamatam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added one more adapter.
parent
f2b0d1db
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
FTPManagementAPIController.cs
Controllers/FTPManagementAPIController.cs
+0
-0
BaseDataAdapter.cs
Services/BaseDataAdapter.cs
+14
-1
FTPDataAdapter.cs
Services/FTPDataAdapter.cs
+0
-0
No files found.
Controllers/FTPManagementAPIController.cs
View file @
39af2a52
This diff is collapsed.
Click to expand it.
Services/BaseDataAdapter.cs
View file @
39af2a52
...
@@ -18,6 +18,8 @@ namespace FTP_Services.Services
...
@@ -18,6 +18,8 @@ namespace FTP_Services.Services
#
region
Variables
#
region
Variables
protected
PetaPoco
.
Database
_repository
;
protected
PetaPoco
.
Database
_repository
;
protected
PetaPoco
.
Database
_adminRepository
;
protected
PetaPoco
.
Database
_adminRepository
;
protected
PetaPoco
.
Database
_mrdRepository
;
//protected IConfiguration _configuration;
//protected IConfiguration _configuration;
protected
AppSettings
_appSettings
;
protected
AppSettings
_appSettings
;
protected
readonly
log4net
.
ILog
log
=
log4net
.
LogManager
.
GetLogger
(
"BaseDataAdapter"
);
protected
readonly
log4net
.
ILog
log
=
log4net
.
LogManager
.
GetLogger
(
"BaseDataAdapter"
);
...
@@ -36,10 +38,16 @@ namespace FTP_Services.Services
...
@@ -36,10 +38,16 @@ namespace FTP_Services.Services
_repository
=
new
PetaPoco
.
Database
(
constr
,
"npgsql"
);
_repository
=
new
PetaPoco
.
Database
(
constr
,
"npgsql"
);
string
Adminconstr
=
_appSettings
.
AdminConnectionString
;
string
Adminconstr
=
_appSettings
.
AdminConnectionString
;
log
.
Debug
(
"Connection String -"
+
Adminconstr
);
log
.
Debug
(
"
Admin
Connection String -"
+
Adminconstr
);
_auth_user_id
=
0
;
_auth_user_id
=
0
;
_user_id
=
0
;
_user_id
=
0
;
_adminRepository
=
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
()
public
void
Dispose
()
...
@@ -51,6 +59,10 @@ namespace FTP_Services.Services
...
@@ -51,6 +59,10 @@ namespace FTP_Services.Services
if
(
this
.
_adminRepository
.
Connection
!=
null
)
if
(
this
.
_adminRepository
.
Connection
!=
null
)
this
.
_adminRepository
.
Connection
.
Close
();
this
.
_adminRepository
.
Connection
.
Close
();
this
.
_adminRepository
.
Dispose
();
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 @
39af2a52
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