/// <summary> /// Executes a command asynchronously. /// </summary> /// <param name="context">The command context.</param> public void ExecuteBackground(ApiBackgroundContext context) { if (app != null) { app.OnExecuteBackground(context); } }
/// <summary> /// Constructor. /// </summary> /// <param name="context">The FreeSWITCH API context</param> internal ExecuteBackgroundEventArgs(ApiBackgroundContext context) { this.context = context; // Extract the subcommand and arguments if present. var fields = context.Arguments.Split(whitespace, 2); this.Subcommand = string.Empty; this.SubcommandArgs = string.Empty; if (fields.Length == 0) { return; } this.Subcommand = fields[0]; if (fields.Length > 1) { this.SubcommandArgs = fields[1]; } }
public void ExecuteBackground(ApiBackgroundContext context) { throw new NotImplementedException(); }
public void ExecuteBackground(ApiBackgroundContext context) { return; }
/// <summary> /// Called by the <see cref="AppLoader" /> to execute a command asynchronously. /// </summary> /// <param name="context">The command context.</param> internal void OnExecuteBackground(ApiBackgroundContext context) { Switch.OnExecuteBackground(new ExecuteBackgroundEventArgs(context)); }