/// <summary> /// Default constructor /// </summary> private RegisterWrapper() { // Auth entities AuthBuilder authBuilder = AuthBuilder.GetInstance(); this.IUserMgr = authBuilder.GetManager <IUserMgr>(AuthBuilder.IUSERMGR); this.IUserRoleMgr = authBuilder.GetManager <IUserRoleMgr>(AuthBuilder.IUSERROLEMGR); this.IRoleMgr = authBuilder.GetManager <IRoleMgr>(AuthBuilder.IROLEMGR); // Wrapper this.EmailWrapper = EmailWrapper.GetInstance(); }
/// <summary> /// Default constructor /// </summary> private UserWrapper() { AuthBuilder authBuilder = AuthBuilder.GetInstance(); this.IUserMgr = authBuilder.GetManager <IUserMgr>(AuthBuilder.IUSERMGR); this.IUserRoleMgr = authBuilder.GetManager <IUserRoleMgr>(AuthBuilder.IUSERROLEMGR); StorageBuilder storageBuilder = StorageBuilder.GetInstance(); this.IStorageBlobMgr = storageBuilder.GetManager <IStorageBlobMgr>(StorageBuilder.ISTORAGEBLOBMGR); this.EmailWrapper = EmailWrapper.GetInstance(); }
/// <summary> /// Name: GetInstance /// Description: /// </summary> /// <returns></returns> public static EmailWrapper GetInstance() { return(Singleton == null ? Singleton = new EmailWrapper() : Singleton); }