-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Вынес авторизацию в домене в отдельный класс вместе с интерфейсом. Общие правки по внешнему виду.
- Loading branch information
Showing
4 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.DirectoryServices; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ProgGym.PrinterMonitor.Domain_Win.Interfaces | ||
{ | ||
public interface IAuthDomain | ||
{ | ||
public DirectoryEntry GetEntry(string? path, string? username, string? password); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using ProgGym.PrinterMonitor.Domain_Win.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.DirectoryServices; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ProgGym.PrinterMonitor.Domain_Win.Services | ||
{ | ||
public class AuthDevice: IAuthDomain | ||
{ | ||
public DirectoryEntry GetEntry(string? path, string? username, string? password) | ||
{ | ||
DirectoryEntry root = new DirectoryEntry(path, username, password); | ||
return root; | ||
} | ||
|
||
|
||
} | ||
} |