Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
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
Administrator
Titanium-Web-Proxy
Commits
a44450a6
Commit
a44450a6
authored
Oct 14, 2016
by
Hakan Arıcı
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UseDefaultCredentials property is added to ExternalProxy.
parent
e170b5ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
13 deletions
+48
-13
ExternalProxy.cs
Titanium.Web.Proxy/Models/ExternalProxy.cs
+48
-13
No files found.
Titanium.Web.Proxy/Models/ExternalProxy.cs
View file @
a44450a6
namespace
Titanium.Web.Proxy.Models
using
System
;
{
using
System.Net
;
/// <summary>
/// An upstream proxy this proxy uses if any
namespace
Titanium.Web.Proxy.Models
/// </summary>
{
public
class
ExternalProxy
/// <summary>
{
/// An upstream proxy this proxy uses if any
public
string
UserName
{
get
;
set
;
}
/// </summary>
public
string
Password
{
get
;
set
;
}
public
class
ExternalProxy
public
string
HostName
{
get
;
set
;
}
{
public
int
Port
{
get
;
set
;
}
private
static
readonly
Lazy
<
NetworkCredential
>
DefaultCredentials
=
new
Lazy
<
NetworkCredential
>(()
=>
CredentialCache
.
DefaultNetworkCredentials
);
}
}
private
string
userName
;
private
string
password
;
public
bool
UseDefaultCredentials
{
get
;
set
;
}
public
string
UserName
{
get
{
return
UseDefaultCredentials
?
DefaultCredentials
.
Value
.
UserName
:
userName
;
}
set
{
userName
=
value
;
if
(
DefaultCredentials
.
Value
.
UserName
!=
userName
)
{
UseDefaultCredentials
=
false
;
}
}
}
public
string
Password
{
get
{
return
UseDefaultCredentials
?
DefaultCredentials
.
Value
.
Password
:
password
;
}
set
{
password
=
value
;
if
(
DefaultCredentials
.
Value
.
Password
!=
password
)
{
UseDefaultCredentials
=
false
;
}
}
}
public
string
HostName
{
get
;
set
;
}
public
int
Port
{
get
;
set
;
}
}
}
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