source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet/Sevices/BMXNetSessionConnectionOverAnotherSessionConnection.cs@ 1222

Last change on this file since 1222 was 1180, checked in by Sam Habiel, 13 years ago

RemoteSession.cs Interface: Added:

  • Lock method to lock glvns on M db.
  • Encoding ConnectionEncoding to set the connection encoding on the DB

BMXNetSessionConnection: Added:

  • Abstract ConnectionEncoding property
  • Clarified error message that gets called. It now says that you don't have TransmitRPC writer lock??? When the error could be any BMXNetException.

BMXNetSessionSocketConnection:

  • Added ConnectionEncoding property
  • ReceiveString completely refactored: now we get much better performance
  • Timers and Debug Writes are all over the place now.

BMXNetRemoteSession:

  • Implemented the 2 new 'stuff' in Interface RemoteSesssion: -- Lock glvn -- Encoding Property
  • TableFromSQL with Dataset has an honest to god bug in it: The passed dataset and table name are not used even though they are passed.

BMXNetSessionConnectionOverAnotherSessionConnection:

  • Implemented the Encoding Property in Interface RemoteSession to have the project compile.

Updated dlls. Have fun.

File size: 2.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace 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 internal class BMXNetSessionConnectionOverAnotherSessionConnection : BMXNetSessionConnection
13 {
14 public static BMXNetSessionConnectionOverAnotherSessionConnection OpenOn(BMXNetBroker aBroker,BMXNetSessionConnection aConnection)
15 {
16 BMXNetSessionConnectionOverAnotherSessionConnection answer = new BMXNetSessionConnectionOverAnotherSessionConnection(aBroker);
17 answer.SessionConnection = aConnection;
18 return answer;
19 }
20
21 public BMXNetSessionConnectionOverAnotherSessionConnection(BMXNetBroker aBroker):base(aBroker) {
22
23 }
24
25 public override int ReceiveTimeout
26 {
27 get { return this.SessionConnection.ReceiveTimeout; }
28 set { this.SessionConnection.ReceiveTimeout = value; }
29 }
30
31 public override int SendTimeout
32 {
33 get { return this.SessionConnection.SendTimeout; }
34 set { this.SessionConnection.SendTimeout = value; }
35 }
36
37 public override Encoding ConnectionEncoding
38 {
39 get;
40 set;
41 }
42
43 public override void Close()
44 {
45 this.SessionConnection.Close();
46 }
47
48 private BMXNetSessionConnection _sessionConnection = null;
49
50 public BMXNetSessionConnection SessionConnection
51 {
52 get { return _sessionConnection; }
53 set { _sessionConnection = value; }
54 }
55
56 protected override string SendReceiveString(string sendString, string multi)
57 {
58 return this.DecodeReceiveString(this.SessionConnection.TransmitRPC("CIABMX", this.EncodeSendString(sendString, multi)));
59 }
60
61 public override string GetLoginFacility(String aDuz)
62 {
63 return this.SessionConnection.GetLoginFacility(aDuz);
64 }
65
66 public override bool IsConnected
67 {
68 get
69 {
70 return this.SessionConnection.IsConnected;
71 }
72 }
73 }
74}
Note: See TracBrowser for help on using the repository browser.