Exemplo n.º 1
0
        /// <summary>
        /// Converts the StaleState value to a lowercase string.
        /// </summary>
        /// <param name="value">The <see cref="StaleState"/> enumeration value to convert to a string.</param>
        /// <returns>The string value of a StaleState enumeration.</returns>
        public static string ToLowerString(this StaleState value)
        {
            var parsed = "false";

            switch (value)
            {
            case StaleState.False:
                break;

            case StaleState.Ok:
                parsed = "ok";
                break;

            case StaleState.UpdateAfter:
                parsed = "update_after";
                break;

            default:
                throw new ArgumentOutOfRangeException("value");
            }
            return(parsed);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Allow the results from a stale view to be used. The default is StaleState.Ok; for development work set to StaleState.False
 /// </summary>
 /// <param name="staleState">The staleState value to use.</param>
 /// <returns>An IViewQuery object for chaining</returns>
 public IViewQuery Stale(StaleState staleState)
 {
     _staleState = staleState;
     return(this);
 }
 /// <summary>
 /// Specifies the level of data freshness.
 /// </summary>
 /// <param name="staleState">State of the stale.</param>
 /// <returns></returns>
 public ISpatialViewQuery Stale(StaleState staleState)
 {
     _stale = staleState;
     return(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Allow the results from a stale view to be used. The default is StaleState.Ok; for development work set to StaleState.False
 /// </summary>
 /// <param name="staleState">The staleState value to use.</param>
 /// <returns>An IViewQuery object for chaining</returns>
 public IViewQuery Stale(StaleState staleState)
 {
     _staleState = staleState;
     return this;
 }
Exemplo n.º 5
0
 public SpatialViewOptions WithStaleState(StaleState staleState)
 {
     StaleState = staleState;
     return(this);
 }
 /// <summary>
 /// Specifies the level of data freshness.
 /// </summary>
 /// <param name="staleState">State of the stale.</param>
 /// <returns></returns>
 public ISpatialViewQuery Stale(StaleState staleState)
 {
     _stale = staleState;
     return this;
 }