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); }
public ActorExpressionResolver() { organizationApplication = ServiceLocator.Current.GetInstance <IOrganizationApplication>(); }