Example #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            app.UseHangfireDashboard();
            app.UseHangfireServer();


            var ffj = new FireAndForgetJob();

            var dj = new DelayedJob();

            var rj = new Recurring_Job();

            var cj = new ContinuationsJob();


            app.UseMvc();
        }
        public IActionResult SignUp()
        {
            //register ishlemi bu metodda gercekleshir
            // mail adresini de burda gondermek olar
            FireAndForgetJob.ConfirmationEmailJob("1", "test");
            Console.WriteLine("MailSended");

            return(View());
        }