コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the OlapServer class.
 /// </summary>
 /// <param name="store">The Olap store that owns the server.</param>
 /// <param name="name">The name of the server.</param>
 public OlapServer(OlapStore store, string name)
 {
     _dataareaActive = new BoolPointer();
     _lastError      = new IntPointer();
     _dimensions     = null;
     _serverHandle   = 0;
     _store          = store;
     _name           = name;
     _disposed       = false;
 }
コード例 #2
0
        /// <summary>
        /// Disconnects from the server.
        /// </summary>
        /// <returns>True, if disconnected; false, otherwise.</returns>
        public bool Disconnect()
        {
            bool result = NativeOlapApi.ServerDisconnect(_store.ClientSlot, _serverHandle, _lastError);

            _serverHandle = 0;
            _cubes        = null;
            _dimensions   = null;
            _settings     = null;
            return(result);
        }