1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using System.Xml;
|
---|
5 | using System.Xml.Serialization;
|
---|
6 | using System.Security.Principal;
|
---|
7 |
|
---|
8 | namespace IndianHealthService.BMXNet.Net
|
---|
9 | {
|
---|
10 | internal class BMXNetSocketConnectionSpec
|
---|
11 | {
|
---|
12 |
|
---|
13 | private WindowsIdentity _windowsIdentity = null;
|
---|
14 |
|
---|
15 | public WindowsIdentity WindowsIdentity
|
---|
16 | {
|
---|
17 | get { return _windowsIdentity; }
|
---|
18 | set
|
---|
19 | {
|
---|
20 | _windowsIdentity = value;
|
---|
21 | this.UseWindowsAuthentication = value != null;
|
---|
22 | }
|
---|
23 | }
|
---|
24 | private String _encryptedAccessVerifyCode = null;
|
---|
25 |
|
---|
26 | public String EncryptedAccessVerifyCode
|
---|
27 | {
|
---|
28 | get { return _encryptedAccessVerifyCode; }
|
---|
29 | set { _encryptedAccessVerifyCode = value; }
|
---|
30 | }
|
---|
31 |
|
---|
32 |
|
---|
33 | public bool HasNameSpace
|
---|
34 | {
|
---|
35 | get { return this.NameSpace != null && this.NameSpace.Length > 0; }
|
---|
36 | }
|
---|
37 |
|
---|
38 |
|
---|
39 | private String _server = null;
|
---|
40 |
|
---|
41 | public String Server
|
---|
42 | {
|
---|
43 | get { return _server; }
|
---|
44 | set { _server = value; }
|
---|
45 | }
|
---|
46 |
|
---|
47 | private int _receiveTimeout = 0;
|
---|
48 |
|
---|
49 | public int ReceiveTimeout
|
---|
50 | {
|
---|
51 | get { return _receiveTimeout; }
|
---|
52 | set { _receiveTimeout = value; }
|
---|
53 | }
|
---|
54 | private int _sendTimeout = 0;
|
---|
55 |
|
---|
56 | public int SendTimeout
|
---|
57 | {
|
---|
58 | get { return _sendTimeout; }
|
---|
59 | set { _sendTimeout = value; }
|
---|
60 | }
|
---|
61 |
|
---|
62 | private int _port = 0;
|
---|
63 |
|
---|
64 | public int Port
|
---|
65 | {
|
---|
66 | get { return _port; }
|
---|
67 | set { _port = value; }
|
---|
68 | }
|
---|
69 |
|
---|
70 | private String _nameSpace = null;
|
---|
71 |
|
---|
72 | public String NameSpace
|
---|
73 | {
|
---|
74 | get { return _nameSpace; }
|
---|
75 | set { _nameSpace = value; }
|
---|
76 | }
|
---|
77 |
|
---|
78 | private bool _useWindowsAuthentication = false;
|
---|
79 |
|
---|
80 | public bool UseWindowsAuthentication
|
---|
81 | {
|
---|
82 | get { return _useWindowsAuthentication; }
|
---|
83 | set { _useWindowsAuthentication = value; }
|
---|
84 | }
|
---|
85 | }
|
---|
86 | }
|
---|