Exemplo n.º 1
0
        /// <summary>
        /// Factory method. Loads a <see cref="UserInactiveNVL"/> object.
        /// </summary>
        /// <returns>A reference to the fetched <see cref="UserInactiveNVL"/> object.</returns>
        public static UserInactiveNVL GetUserInactiveNVL()
        {
            if (_list == null)
            {
                _list = DataPortal.Fetch <UserInactiveNVL>(false);
            }

            return(_list);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Factory method. Asynchronously loads a <see cref="UserInactiveNVL"/> object.
 /// </summary>
 /// <param name="callback">The completion callback method.</param>
 public static void GetUserInactiveNVL(EventHandler <DataPortalResult <UserInactiveNVL> > callback)
 {
     if (_list == null)
     {
         DataPortal.BeginFetch <UserInactiveNVL>(false, (o, e) =>
         {
             _list = e.Object;
             callback(o, e);
         });
     }
     else
     {
         callback(null, new DataPortalResult <UserInactiveNVL>(_list, null, null));
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Used by async loaders to load the cache.
 /// </summary>
 /// <param name="list">The list to cache.</param>
 internal static void SetCache(UserInactiveNVL list)
 {
     _list = list;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Clears the in-memory UserInactiveNVL cache so it is reloaded on the next request.
 /// </summary>
 public static void InvalidateCache()
 {
     _list = null;
 }