source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/IHS BMX Framework/IndianHealthService.BMXNet/BMXNetOverAnotherLib.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: 1.3 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace IndianHealthService.BMXNet
6{
7 /// <summary>
8 /// To test the BMXNetLib class, we can use one instance of BMXNetLib
9 /// to be the authenicated transport and use the receiver to be the
10 /// encapsulated BMX interaction.
11 /// </summary>
12 public class BMXNetOverAnotherLib:BMXNetLib
13 {
14
15 public static BMXNetLib OpenOn(BMXNetLib aNetLib)
16 {
17 BMXNetOverAnotherLib answer = new BMXNetOverAnotherLib();
18 answer.NetLib = aNetLib;
19 return answer;
20 }
21
22 private BMXNetLib _netLib = null;
23
24 public BMXNetLib NetLib
25 {
26 get { return _netLib; }
27 set { _netLib = value; }
28 }
29
30 protected override string SendReceiveString(string sendString, string multi)
31 {
32 return this.DecodeReceiveString(this.NetLib.TransmitRPC("CIABMX", this.EncodeSendString(sendString,multi)));
33 }
34
35 public override string GetLoginFacility()
36 {
37 return this.NetLib.GetLoginFacility();
38 }
39
40 public override bool IsConnected
41 {
42 get
43 {
44 return this.NetLib.IsConnected;
45 }
46 }
47 }
48}
Note: See TracBrowser for help on using the repository browser.