/// <summary> /// Retrieve information about the database. Awaitable asynchronous version. /// </summary> /// <param name="cntx">Authenticated caller context object. If cannot be null.</param> /// <returns> /// Brief information about current database. /// </returns> public async System.Threading.Tasks.Task <DBInformation> GetDatabaseInfoAsync(CallContext cntx) { try { return(await Channel.GetDatabaseInfoAsync(cntx)); } catch (Exception ex) { HandleError(ex); return(null); } }
/// <summary> /// Initialize or refresh and check the validity of the caller context information of the caller. Awaitable asynchronous version. /// </summary> /// <remarks> /// Note: The current version of the system does not validate the returned caller context object. /// Therefore care must be taken to limit the access to the service to trusted nodes or users within a secured network environment. /// </remarks> /// <param name="cntx">Authenticated caller context object. If cannot be null.</param> /// <returns> /// An initialized and refreshed caller context object used for subsequent API calls. Supplying an invalid caller context will /// result in a deny of the service. /// </returns> public async System.Threading.Tasks.Task <CallContext> InitializeCallContextAsync(CallContext cntx) { try { return(await Channel.InitializeCallContextAsync(cntx)); } catch (Exception ex) { HandleError(ex); return(null); } }