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