4 // Part of managed C#/.NET library System.Data.OracleClient.dll
6 // Part of the Mono class libraries at
7 // mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci
9 // Assembly: System.Data.OracleClient.dll
10 // Namespace: System.Data.OracleClient.Oci
13 // Tim Coleman <tim@timcoleman.com>
15 // Copyright (C) Tim Coleman, 2003
19 using System.Runtime.InteropServices;
21 namespace System.Data.OracleClient.Oci {
22 internal sealed class OciServiceHandle : OciHandle
26 bool disposed = false;
27 OciSessionHandle session;
28 OciServerHandle server;
30 OciErrorHandle errorHandle;
36 public OciServiceHandle (OciHandle parent, IntPtr handle)
37 : base (OciHandleType.Service, parent, handle)
41 #endregion // Constructors
45 public OciErrorHandle ErrorHandle {
46 get { return errorHandle; }
47 set { errorHandle = value; }
50 #endregion // Properties
54 protected override void Dispose (bool disposing)
66 base.Dispose (disposing);
71 public bool SetServer (OciServerHandle handle)
74 int status = OciGlue.OCIAttrSet (this,
78 OciAttributeType.Server,
83 public bool SetSession (OciSessionHandle handle)
86 int status = OciGlue.OCIAttrSet (this,
90 OciAttributeType.Session,