source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/IHS BMX Framework/IndianHealthService.BMXNet.WinForm/Configuration/RpmsConnectionSpec.cs@ 1172

Last change on this file since 1172 was 1146, checked in by Sam Habiel, 14 years ago

Initial Import of BMX4

File size: 4.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Xml;
5using System.Xml.Serialization;
6
7namespace IndianHealthService.BMXNet.WinForm.Configuration
8{
9 /// <summary>
10 /// Specification for BMX RPMS Connection. Instances of this class are serialized as XML
11 /// to a PersisentStore and are used is picklists for users to select from.
12 /// </summary>
13 public class RpmsConnectionSpec
14 {
15
16 [XmlIgnore]
17 internal bool HasNameSpace
18 {
19 get { return this.NameSpace != null && this.NameSpace.Length > 0; }
20 }
21
22 private bool _isManageSpecsPlaceHolder = false;
23
24 [XmlIgnore]
25 internal bool IsManageSpecsPlaceHolder
26 {
27 get { return _isManageSpecsPlaceHolder; }
28 set { _isManageSpecsPlaceHolder = value; }
29 }
30
31 private bool _isFromCommandLine = false;
32
33 [XmlIgnore]
34 internal bool IsFromCommandLine
35 {
36 get { return _isFromCommandLine; }
37 set { _isFromCommandLine = value; }
38 }
39
40 private String _name = null;
41
42 /// <summary>
43 /// The required display name of a connection used in pick lists
44 /// </summary>
45 [XmlAttribute("Name")]
46 public String Name
47 {
48 get { return _name; }
49 set { _name = value; }
50 }
51
52 private String _server = null;
53
54 /// <summary>
55 /// The required Name/IP Address of the RPMS Host
56 /// </summary>
57 [XmlAttribute("Server")]
58 public String Server
59 {
60 get { return _server; }
61 set { _server = value; }
62 }
63
64 private int _receiveTimeout = 0;
65
66 /// <summary>
67 /// The optional time in millseconds to wait for a response from RPMS
68 /// </summary>
69 [XmlAttribute("ReceiveTimeout")]
70 public int ReceiveTimeout
71 {
72 get { return _receiveTimeout; }
73 set { _receiveTimeout = value; }
74 }
75 private int _sendTimeout = 0;
76
77 /// <summary>
78 /// The optional time in millseconds to wait when sending a request to RPMS
79 /// </summary>
80 [XmlAttribute("SendTimeout")]
81 public int SendTimeout
82 {
83 get { return _sendTimeout; }
84 set { _sendTimeout = value; }
85 }
86
87 private int _port = 0;
88
89 /// <summary>
90 /// The required TCP/IP port number of the RPMS BMX Broker
91 /// </summary>
92 [XmlAttribute("Port")]
93 public int Port
94 {
95 get { return _port; }
96 set { _port = value; }
97 }
98
99 private String _nameSpace = null;
100
101 /// <summary>
102 /// The optional Namespace to use in RPMS. Will default to BMX Brokers namespace.
103 /// </summary>
104 [XmlAttribute("NameSpace")]
105 public String NameSpace
106 {
107 get { return _nameSpace; }
108 set { _nameSpace = value; }
109 }
110
111 private bool _isDefault = false;
112
113 /// <summary>
114 /// The optional flag to specify this connection as the users default.
115 /// </summary>
116 [XmlAttribute("IsDefault")]
117 public bool IsDefault
118 {
119 get { return _isDefault; }
120 set { _isDefault = value; }
121 }
122
123 private bool _useWindowsAuthentication = false;
124
125 /// <summary>
126 /// The optional flag to specify that WindowsAuthenication should be attempted.
127 /// </summary>
128 [XmlAttribute("UseWindowsAuthentication")]
129 public bool UseWindowsAuthentication
130 {
131 get { return _useWindowsAuthentication; }
132 set { _useWindowsAuthentication = value; }
133 }
134
135 private bool _useDefaultNamespace = true;
136
137 /// <summary>
138 /// The optional flag to specify that the BMX Broker default namespace should be used.
139 /// </summary>
140 [XmlAttribute("UseDefaultNamespace")]
141 public bool UseDefaultNamespace
142 {
143 get { return _useDefaultNamespace; }
144 set { _useDefaultNamespace = value; }
145 }
146
147
148 }
149}
Note: See TracBrowser for help on using the repository browser.