public void OnUnregister(IInjectionContainer container) { // Unbind ICommandDispatcher 类型和 ICommandPool 类型 binding(清除 dispatcher) container.UnbindType <ICommandDispatcher>(); container.UnbindType <ICommandPool>(); // 清除所有 commands container.UnbindType <ICommand>(); }