コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
 /// <summary>
 /// Name: GetInstance
 /// Description:
 /// </summary>
 /// <returns></returns>
 public static EmailWrapper GetInstance()
 {
     return(Singleton == null ? Singleton = new EmailWrapper() : Singleton);
 }