Ignore:
Timestamp:
Jul 1, 2010, 1:43:04 PM (14 years ago)
Author:
Sam Habiel
Message:

Some profiling code in BMXNetLib.cs conditional on #DEBUG.

Location:
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNetLib.cs

    r817 r818  
    10671067                                        string sSend = ADEBLDMsg(m_cHDR, sRPC, sParam, ref sMult);
    10681068                                        SendString(m_pCommSocket, sSend, sMult);
    1069                                         //                                      Debug.Write("TransmitRPC Sent: " + sSend + "\n");
    1070                                         string strResult = ReceiveString(m_pCommSocket);
    1071                                         //                                      Debug.Write("TransmitRPC Received: " + strResult + "\n");
    1072 
     1069#if DEBUG   
     1070                    DateTime sendTime = DateTime.Now;
     1071                    Debug.Write("TransmitRPC Sent: " + sSend + "\n");
     1072#endif
     1073                    string strResult = ReceiveString(m_pCommSocket);
     1074#if DEBUG
     1075                    DateTime receiveTime = DateTime.Now;
     1076                    Debug.Write("TransmitRPC Received: " + strResult + "\n");
     1077                    TimeSpan executionTime = receiveTime - sendTime;
     1078                    Debug.Write("Execution Time: " + executionTime.Milliseconds + " ms.\n");
     1079#endif
    10731080                                        if (sOldAppContext != "")
    10741081                                        {
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/bmxnet.xml

    r816 r818  
    55    </assembly>
    66    <members>
     7        <member name="P:IndianHealthService.BMXNet.RPMSDb.ResultSets">
     8            <summary>
     9            Returns the array of RMPSResultSets retrieved from RPMS
     10            </summary>
     11        </member>
     12        <member name="P:IndianHealthService.BMXNet.RPMSDb.CurrentRecordSet">
     13            <summary>
     14            Sets and Returns the current recordset
     15            </summary>
     16        </member>
     17        <member name="T:IndianHealthService.BMXNet.BMXNetConnectInfo">
     18            <summary>
     19            Contains methods and properties to support RPMS Login for .NET applications
     20            </summary>
     21        </member>
     22        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.SubscribeEvent(System.String)">
     23            <summary>
     24            Register interest in an RPMS event.
     25            </summary>
     26            <param name="EventName"></param>
     27            <returns></returns>
     28        </member>
     29        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.UnSubscribeEvent(System.String)">
     30            <summary>
     31            Unregister an RPMS event
     32            </summary>
     33            <param name="EventName"></param>
     34            <returns></returns>
     35        </member>
     36        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.RaiseEvent(System.String,System.String,System.Boolean)">
     37            <summary>
     38             Raise an RPMS event
     39            </summary>
     40            <param name="EventName">The name of the event to raise</param>
     41            <param name="Param">Parameters associated with the event</param>
     42            <param name="RaiseBack">True if the event should be raised back to the caller</param>
     43            <returns></returns>
     44        </member>
     45        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.Login">
     46            <summary>
     47            For backwards compatibility.  Internally calls LoadConnectInfo()
     48            </summary>
     49        </member>
     50        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.ChangeServerInfo">
     51            <summary>
     52            Change the internet address and port of the RPMS server
     53            Throws a BMXNetException if user cancels
     54            </summary>
     55        </member>
     56        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo">
     57            <summary>
     58            Called to connect to an M server
     59            Server address, port, Access and Verify codes will be
     60            prompted for depending on whether these values are
     61            cached.
     62            </summary>
     63        </member>
     64        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32)">
     65            <summary>
     66            Called to connect to the M server specified by
     67            server address and listener port.  The default namespace on the server will be used.
     68            Access and Verify codes will be prompted if
     69            valid values for the current Windows Identity are
     70            not cached on the server.
     71            </summary>
     72            <param name="MServerAddress">The IP address or name of the MServer</param>
     73            <param name="Port">The port on which the BMXNet Monitor is listening</param>
     74        </member>
     75        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32,System.String)">
     76            <summary>
     77            Called to connect to the M server specified by
     78            server address, listener port and namespace.
     79            Access and Verify codes will be prompted if
     80            valid values for the current Windows Identity are
     81            not cached on the server.
     82            </summary>
     83            <param name="MServerAddress">The IP address or name of the MServer</param>
     84            <param name="Port">The port on which the BMXNet Monitor is listening</param>
     85            <param name="Namespace">The namespace in which the BMXNet application will run</param>
     86        </member>
     87        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.String)">
     88            <summary>
     89            Called to connect to an M server
     90            using specific Access and Verify codes.
     91            Server address and port will be prompted if they
     92            are not cached in local storage.
     93            </summary>
     94            <param name="AccessCode">The user's access code</param>
     95            <param name="VerifyCode">The user's verify code</param>
     96        </member>
     97        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32,System.String,System.String)">
     98            <summary>
     99            Called to connect to a specific M server
     100            using specific Access and Verify codes.
     101            </summary>
     102            <param name="AccessCode">The user's access code</param>
     103            <param name="VerifyCode">The user's verify code</param>
     104            <param name="MServerAddress">The IP address or name of the MServer</param>
     105            <param name="Port">The port on which the BMXNet Monitor is listening</param>
     106        </member>
     107        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32,System.String,System.String,System.String)">
     108            <summary>
     109            Called to connect to a specific namespace on the M server
     110            using specific Access and Verify codes.
     111            </summary>
     112            <param name="AccessCode">The user's access code</param>
     113            <param name="VerifyCode">The user's verify code</param>
     114            <param name="MServerAddress">The IP address or name of the MServer</param>
     115            <param name="Port">The port on which the BMXNet Monitor is listening</param>
     116            <param name="Namespace">The namespace in which the BMXNet application will run</param>
     117        </member>
     118        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.RPMSDataTable(System.String,System.String)">
     119            <summary>
     120            Creates and names a DataTable using the command in CommandString
     121            and the name in TableName.
     122            </summary>
     123            <param name="CommandString"> The SQL or RPC call</param>
     124            <param name="TableName">The name of the resulting table</param>
     125            <returns>
     126            Returns the resulting DataTable.
     127            </returns>
     128        </member>
     129        <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.RPMSDataTable(System.String,System.String,System.Data.DataSet)">
     130            <summary>
     131            Creates and names a DataTable using the command in CommandString
     132            and the name in TableName then adds it to DataSet.
     133            </summary>
     134            <param name="CommandString">The SQL or RPC call</param>
     135            <param name="TableName">The name of the resulting table</param>
     136            <param name="dsDataSet">The dataset in which to place the table</param>
     137            <returns>
     138            Returns the resulting DataTable.
     139            </returns>
     140        </member>
     141        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.EventPollingEnabled">
     142            <summary>
     143            Enables and disables event polling for the RPMS connection
     144            </summary>
     145        </member>
     146        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.EventPollingInterval">
     147            <summary>
     148            Sets and retrieves the interval in milliseconds for RPMS event polling
     149            </summary>
     150        </member>
     151        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.AutoFire">
     152            <summary>
     153            Sets and retrieves the number of times that the Event Timer will generage a BMXNet AutoFire event.
     154            For example, if AutoFire == 3, then every 3rd time the Event Timer fires, it will generate an AutoFire event.
     155            </summary>
     156        </member>
     157        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.ReceiveTimeout">
     158            <summary>
     159            Set and retrieve the timeout, in milliseconds, to receive a response from the RPMS server.
     160            If the retrieve time exceeds the timeout, an exception will be thrown and the connection will be closed.
     161            The default is 30 seconds.
     162            </summary>
     163        </member>
     164        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.DUZ">
     165            <summary>
     166            Returns a string representation of DUZ
     167            </summary>
     168        </member>
     169        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.DUZ2">
     170            <summary>
     171            Sets and Returns DUZ(2)
     172            </summary>
     173        </member>
     174        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.MServerAddress">
     175            <summary>
     176            Gets the address of the  RPMS Server
     177            </summary>
     178        </member>
     179        <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.MServerPort">
     180            <summary>
     181            Gets the port on which the MServer is connected
     182            </summary>
     183        </member>
     184        <member name="T:IndianHealthService.BMXNet.BMXNetConnectInfo.ServerData">
     185            <summary>
     186            Serializes RPMS server address and port
     187            </summary>
     188        </member>
    7189        <member name="T:IndianHealthService.BMXNet.DServerInfo">
    8190            <summary>
     
    190372            </summary>
    191373        </member>
    192         <member name="T:IndianHealthService.BMXNet.BMXNetException">
    193             <summary>
    194             Custom exception class for BMXNet
    195             </summary>
    196         </member>
    197         <member name="P:IndianHealthService.BMXNet.RPMSDb.ResultSets">
    198             <summary>
    199             Returns the array of RMPSResultSets retrieved from RPMS
    200             </summary>
    201         </member>
    202         <member name="P:IndianHealthService.BMXNet.RPMSDb.CurrentRecordSet">
    203             <summary>
    204             Sets and Returns the current recordset
    205             </summary>
    206         </member>
    207374        <member name="T:IndianHealthService.BMXNet.DLoginInfo">
    208375            <summary>
     
    243410            </summary>
    244411        </member>
    245         <member name="T:IndianHealthService.BMXNet.BMXNetConnectInfo">
    246             <summary>
    247             Contains methods and properties to support RPMS Login for .NET applications
    248             </summary>
    249         </member>
    250         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.SubscribeEvent(System.String)">
    251             <summary>
    252             Register interest in an RPMS event.
    253             </summary>
    254             <param name="EventName"></param>
    255             <returns></returns>
    256         </member>
    257         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.UnSubscribeEvent(System.String)">
    258             <summary>
    259             Unregister an RPMS event
    260             </summary>
    261             <param name="EventName"></param>
    262             <returns></returns>
    263         </member>
    264         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.RaiseEvent(System.String,System.String,System.Boolean)">
    265             <summary>
    266              Raise an RPMS event
    267             </summary>
    268             <param name="EventName">The name of the event to raise</param>
    269             <param name="Param">Parameters associated with the event</param>
    270             <param name="RaiseBack">True if the event should be raised back to the caller</param>
    271             <returns></returns>
    272         </member>
    273         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.Login">
    274             <summary>
    275             For backwards compatibility.  Internally calls LoadConnectInfo()
    276             </summary>
    277         </member>
    278         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.ChangeServerInfo">
    279             <summary>
    280             Change the internet address and port of the RPMS server
    281             Throws a BMXNetException if user cancels
    282             </summary>
    283         </member>
    284         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo">
    285             <summary>
    286             Called to connect to an M server
    287             Server address, port, Access and Verify codes will be
    288             prompted for depending on whether these values are
    289             cached.
    290             </summary>
    291         </member>
    292         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32)">
    293             <summary>
    294             Called to connect to the M server specified by
    295             server address and listener port.  The default namespace on the server will be used.
    296             Access and Verify codes will be prompted if
    297             valid values for the current Windows Identity are
    298             not cached on the server.
    299             </summary>
    300             <param name="MServerAddress">The IP address or name of the MServer</param>
    301             <param name="Port">The port on which the BMXNet Monitor is listening</param>
    302         </member>
    303         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32,System.String)">
    304             <summary>
    305             Called to connect to the M server specified by
    306             server address, listener port and namespace.
    307             Access and Verify codes will be prompted if
    308             valid values for the current Windows Identity are
    309             not cached on the server.
    310             </summary>
    311             <param name="MServerAddress">The IP address or name of the MServer</param>
    312             <param name="Port">The port on which the BMXNet Monitor is listening</param>
    313             <param name="Namespace">The namespace in which the BMXNet application will run</param>
    314         </member>
    315         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.String)">
    316             <summary>
    317             Called to connect to an M server
    318             using specific Access and Verify codes.
    319             Server address and port will be prompted if they
    320             are not cached in local storage.
    321             </summary>
    322             <param name="AccessCode">The user's access code</param>
    323             <param name="VerifyCode">The user's verify code</param>
    324         </member>
    325         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32,System.String,System.String)">
    326             <summary>
    327             Called to connect to a specific M server
    328             using specific Access and Verify codes.
    329             </summary>
    330             <param name="AccessCode">The user's access code</param>
    331             <param name="VerifyCode">The user's verify code</param>
    332             <param name="MServerAddress">The IP address or name of the MServer</param>
    333             <param name="Port">The port on which the BMXNet Monitor is listening</param>
    334         </member>
    335         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.LoadConnectInfo(System.String,System.Int32,System.String,System.String,System.String)">
    336             <summary>
    337             Called to connect to a specific namespace on the M server
    338             using specific Access and Verify codes.
    339             </summary>
    340             <param name="AccessCode">The user's access code</param>
    341             <param name="VerifyCode">The user's verify code</param>
    342             <param name="MServerAddress">The IP address or name of the MServer</param>
    343             <param name="Port">The port on which the BMXNet Monitor is listening</param>
    344             <param name="Namespace">The namespace in which the BMXNet application will run</param>
    345         </member>
    346         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.RPMSDataTable(System.String,System.String)">
    347             <summary>
    348             Creates and names a DataTable using the command in CommandString
    349             and the name in TableName.
    350             </summary>
    351             <param name="CommandString"> The SQL or RPC call</param>
    352             <param name="TableName">The name of the resulting table</param>
    353             <returns>
    354             Returns the resulting DataTable.
    355             </returns>
    356         </member>
    357         <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.RPMSDataTable(System.String,System.String,System.Data.DataSet)">
    358             <summary>
    359             Creates and names a DataTable using the command in CommandString
    360             and the name in TableName then adds it to DataSet.
    361             </summary>
    362             <param name="CommandString">The SQL or RPC call</param>
    363             <param name="TableName">The name of the resulting table</param>
    364             <param name="dsDataSet">The dataset in which to place the table</param>
    365             <returns>
    366             Returns the resulting DataTable.
    367             </returns>
    368         </member>
    369         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.EventPollingEnabled">
    370             <summary>
    371             Enables and disables event polling for the RPMS connection
    372             </summary>
    373         </member>
    374         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.EventPollingInterval">
    375             <summary>
    376             Sets and retrieves the interval in milliseconds for RPMS event polling
    377             </summary>
    378         </member>
    379         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.AutoFire">
    380             <summary>
    381             Sets and retrieves the number of times that the Event Timer will generage a BMXNet AutoFire event.
    382             For example, if AutoFire == 3, then every 3rd time the Event Timer fires, it will generate an AutoFire event.
    383             </summary>
    384         </member>
    385         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.ReceiveTimeout">
    386             <summary>
    387             Set and retrieve the timeout, in milliseconds, to receive a response from the RPMS server.
    388             If the retrieve time exceeds the timeout, an exception will be thrown and the connection will be closed.
    389             The default is 30 seconds.
    390             </summary>
    391         </member>
    392         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.DUZ">
    393             <summary>
    394             Returns a string representation of DUZ
    395             </summary>
    396         </member>
    397         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.DUZ2">
    398             <summary>
    399             Sets and Returns DUZ(2)
    400             </summary>
    401         </member>
    402         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.MServerAddress">
    403             <summary>
    404             Gets the address of the  RPMS Server
    405             </summary>
    406         </member>
    407         <member name="P:IndianHealthService.BMXNet.BMXNetConnectInfo.MServerPort">
    408             <summary>
    409             Gets the port on which the MServer is connected
    410             </summary>
    411         </member>
    412         <member name="T:IndianHealthService.BMXNet.BMXNetConnectInfo.ServerData">
    413             <summary>
    414             Serializes RPMS server address and port
     412        <member name="T:IndianHealthService.BMXNet.BMXNetException">
     413            <summary>
     414            Custom exception class for BMXNet
    415415            </summary>
    416416        </member>
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs

    r817 r818  
    11131113                                // the values you collected to LoadConnectInfo(access,verify)
    11141114                                //
    1115                                 m_ci.LoadConnectInfo("172.16.17.31",9240,"","");
     1115                                m_ci.LoadConnectInfo("192.168.1.103",9260,"","");
    11161116
    11171117                                m_ci.AppContext = "BMXRPC";
Note: See TracChangeset for help on using the changeset viewer.