protected internal virtual void scheduleEventAsync(object payload, object payloadLocal, string businessKey) { EventSubscriptionJobDeclaration asyncDeclaration = JobDeclaration; if (asyncDeclaration == null) { // fallback to sync if we couldn't find a job declaration processEventSync(payload, payloadLocal, businessKey); } else { MessageEntity message = asyncDeclaration.createJobInstance(this); CommandContext commandContext = Context.CommandContext; commandContext.JobManager.send(message); } }