Exemplo n.º 1
0
        protected override void Initialize(RequestContext requestContext)
        {
            if (FormsService == null) { FormsService = new FormsAuthenticationService(); }
            if (MembershipService == null) { MembershipService = new AccountMembershipService(); }

            base.Initialize(requestContext);
        }
Exemplo n.º 2
0
        //Adding my Payment repositories here

        //End "Adding my Payment repositories"

        protected override void Initialize(RequestContext requestContext)
        {
            if (FormsService == null) { FormsService = new FormsAuthenticationService(); }
            if (MembershipService == null) { MembershipService = new AccountMembershipService(); }
            //if (ACRepository == null) { ACRepository = new ACRepository(); }

            smtpClient = new SmtpClient();
            //smtpClient = new SmtpClient(CONST_MailServer, 26);
            smtpClient.SendCompleted += new SendCompletedEventHandler(smtpClient_SendCompleted);
            ViewData["Version"] = Assembly.GetExecutingAssembly().GetName().Version.ToString();

            base.Initialize(requestContext);
        }