//private static readonly ILog log = LogManager.GetLogger(typeof(AssignmentExpressionResolver));

        public IActor SelectActor(IAssignmentContext assignmentContext)
        {
            IActor actor = null;

            string expression = (string)assignmentContext.Configuration["expression"];

            try
            {
                actor = actorExpressionResolver.ResolveArgument(expression, assignmentContext);
            }
            catch (Exception e)
            {
                //log.Error("error selecting an actor :", e);
                throw new SystemException(e.Message);
            }

            return(actor);
        }
예제 #2
0
        public String SelectActor(IAssignmentContext assignmentContext)
        {
            String actorId = null;

            String expression = (String)assignmentContext.GetConfiguration()["expression"];

            try
            {
                IActor actor = _actorExpressionResolver.ResolveArgument(expression, assignmentContext);
                if (actor != null)
                {
                    actorId = actor.Id;
                }
            }
            catch (Exception e)
            {
                log.Error("error selecting an actor :", e);
                throw new SystemException(e.Message);
            }

            return(actorId);
        }
		public String SelectActor(IAssignmentContext assignmentContext)
		{
			String actorId = null;

			String expression = (String) assignmentContext.GetConfiguration()["expression"];

			try
			{
				IActor actor = _actorExpressionResolver.ResolveArgument(expression, assignmentContext);
				if (actor != null)
				{
					actorId = actor.Id;
				}
			}
			catch (Exception e)
			{
				log.Error("error selecting an actor :", e);
				throw new SystemException(e.Message);
			}

			return actorId;
		}
예제 #4
0
 public LoadService(IAssignmentContext context)
 {
     _context = context;
 }
예제 #5
0
        public String SelectActor(IAssignmentContext assignerContext)
        {
            String actor = (String)assignerContext.GetConfiguration()["actor"];

            return(actor);
        }
예제 #6
0
		public String SelectActor(IAssignmentContext assignerContext)
		{
			String actor = (String) assignerContext.GetConfiguration()["actor"];
			return actor;
		}
예제 #7
0
 public UpdateService(IAssignmentContext context)
 {
     _context = context;
 }