Beispiel #1
0
        public object Deserialize(string text)
        {
            if (text == null)
            {
                return(null);
            }

            IActor actor = null;
            IOrganizationApplication organizationApplication = ServiceLocator.Current.GetInstance <IOrganizationApplication>();

            try
            {
                actor = organizationApplication.FindActorByUniqueName(text);
            }
            catch (Exception t)
            {
                throw new ArgumentException("couldn't deserialize " + text + " to a User : "******" : " + t.Message);
            }

            return(actor);
        }
Beispiel #2
0
 public ActorExpressionResolver()
 {
     organizationApplication = ServiceLocator.Current.GetInstance <IOrganizationApplication>();
 }