Пример #1
0
        public object ResolveArgumentPreviousActor(IActor resolvedActor, string[] parameters, IHandlerContext handlerContext)
        {
            if (parameters.Length != 0)
            {
                throw new SystemException("argument previousActor expects exactly zero parameters instead of " + parameters.Length);
            }
            IActor actor = handlerContext.GetPreviousActor();

            if (actor == null)
            {
                throw new SystemException("argument previousActor could not be resolve because there is no previous actor");
            }
            return(actor);
        }