protected override void Validate(MethodInfo method, HandlerArgumentsDescription argumentsDescription) { base.Validate(method, argumentsDescription); int num = 0; foreach (HandlerArgument argument in argumentsDescription.HandlerArguments) { if (argument.Context) { num++; } } if (num > 1) { throw new MultipleContextNodesNotSupportedException(method); } }
protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) => new NodeRemovedCompleteHandler(method, methodHandle, handlerArgumentsDescription);
protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) => new AfterFixedUpdateEventCompleteHandler(method, methodHandle, handlerArgumentsDescription);
public AfterFixedUpdateEventCompleteHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(AfterFixedUpdateEvent), method, methodHandle, handlerArgumentsDescription) { }
public NodeRemovedCompleteHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(NodeRemoveEvent), method, methodHandle, handlerArgumentsDescription) { }
public EventCompleteHandler(Type eventType, MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(EventPhase.Complete, eventType, method, methodHandle, handlerArgumentsDescription) { }
public UpdateEventFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(UpdateEvent), method, methodHandle, handlerArgumentsDescription) { }
protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) => new UpdateEventFireHandler(method, methodHandle, handlerArgumentsDescription);
protected override Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) => new EventFireHandler(method.GetParameters()[0].ParameterType, method, methodHandle, handlerArgumentsDescription);
protected virtual void Validate(MethodInfo method, HandlerArgumentsDescription argumentsDescription) { }
protected abstract Handler CreateHandlerInstance(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription);
public EarlyUpdateCompleteHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(EarlyUpdateEvent), method, methodHandle, handlerArgumentsDescription) { }
public NodeAddedFireHandler(MethodInfo method, MethodHandle methodHandle, HandlerArgumentsDescription handlerArgumentsDescription) : base(typeof(NodeAddedEvent), method, methodHandle, handlerArgumentsDescription) { }