示例#1
0
 /// <summary>
 /// Create a ResolutionCallback in which the label is automatically generated from the method name.
 /// CamelCase names will be broken into their individual words for the label.
 /// </summary>
 /// <param name="callback"></param>
 public ResolutionCallback(ProfileCallback callback)
 {
     ProfileCallback = callback;
     if (callback != null)
     {
         Label = ProfileCallback.Method.Name.Prettify();
     }
     else
     {
         Label = "No Fix Available";
     }
 }
 public void PrefetchProfile(ProfileCallback profileCallback)
 {
     mSpeechVerifier.PrefetchProfile(profileCallback);
 }
示例#3
0
 public void PrefetchProfile(ProfileCallback callback)
 {
     mSpeechEnroller.PrefetchProfile(callback);
 }
示例#4
0
 /// <summary>
 /// Create a Validation object.
 /// </summary>
 /// <param name="name">A human readable message describing the validation state.</param>
 /// <param name="impact">The importance of the result from OK to Error.</param>
 /// <param name="callbackToFix">A callback method that will allow the result to be corrected if possible.</param>
 internal ValidationResult(string name, AbstractPluginManager pluginManager, Level impact, ProfileCallback callbackToFix)
 {
     this.id            = name.GetHashCode();
     this.name          = name;
     this.PluginManager = pluginManager;
     this.impact        = impact;
     if (callbackToFix != null)
     {
         this.Callbacks.Add(new ResolutionCallback(callbackToFix));
     }
 }
示例#5
0
 /// <summary>
 /// Create a ResolutionCallback in which the label is defined.
 /// </summary>
 /// <param name="callback"></param>
 public ResolutionCallback(ProfileCallback callback, string label)
 {
     ProfileCallback = callback;
     Label           = label;
 }