示例#1
0
 /// <summary>
 /// Executes a command asynchronously.
 /// </summary>
 /// <param name="context">The command context.</param>
 public void ExecuteBackground(ApiBackgroundContext context)
 {
     if (app != null)
     {
         app.OnExecuteBackground(context);
     }
 }
示例#2
0
        /// <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();
 }
示例#4
0
 public void ExecuteBackground(ApiBackgroundContext context)
 {
     throw new NotImplementedException();
 }
示例#5
0
 public void ExecuteBackground(ApiBackgroundContext context)
 {
     return;
 }
示例#6
0
 /// <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));
 }