Ejemplo n.º 1
0
        protected void RegisterActionHandler(MWActionBase action, string name)
        {
            if (Behavior == null)
            {
                throw new InvalidOperationException("Cannot register action handlers to an uninitialized behavior context.");
            }
            var handler = new BehaviorActionHandler(BehaviorType, name, _appRef, _attachedActorId);

            action.Handler = handler;
        }
        protected void RegisterActionHandler(MWActionBase action, string name)
        {
            var handler = new BehaviorActionHandler(((IBehaviorHandler)this).BehaviorType, name, _appRef, _attachedActorId);

            action.Handler = handler;
        }