ApplicationState.cs
1 using System;
2 
3 namespace Microsoft.Bot.Builder.Calling.ObjectModel.Misc
4 {
5  public static class ApplicationState
6  {
11  public static void Validate(string appState)
12  {
13  if (!String.IsNullOrWhiteSpace(appState))
14  {
15  Utils.AssertArgument(appState.Length <= MaxValues.AppStateLength, "Appstate specified cannot exceed {0} bytes", MaxValues.AppStateLength);
16  }
17  }
18  }
19 }
static void Validate(string appState)
helper method to validate appState
static void AssertArgument(bool condition, string format, params object[] args)
Argument checker
Definition: Utils.cs:17
static readonly uint AppStateLength
Maximum length of ApplicationState specified
Definition: MaxValues.cs:57