public static void RegisterExtensions() { var extensions = new DeliveryJobExtensions(); foreach (var item in extensions.ExtensionsDictionary) { JobTaskExtensionResolver.Register(item.Key, item.Value); } }
private void ExecuteExtensions(JobTask task) { var extensions = JobTaskExtensionResolver.Resolve(this.Order.Type, task.Type); if (extensions != null) { foreach (var extension in extensions) { extension.CheckAndExecute(task, this); } } }