public static IXMLMailUtil GetEntity() { if (entity == null) { ProxyFactory factory = new ProxyFactory(new XMLMailUtil()); factory.AddAdvice(new AroundAdvice()); entity = (IXMLMailUtil)factory.GetProxy(); } return(entity); }
public static IXMLMailUtil GetEntity() { if (entity == null) { ProxyFactory factory = new ProxyFactory(new XMLMailUtil()); factory.AddAdvice(new AroundAdvice()); entity = (IXMLMailUtil)factory.GetProxy(); } return entity; }