Beispiel #1
0
        private void GoHardcoded(int jobId)
        {
            var a = new MyActivator(this);

            using (var scope = (MyActivator.MyScope)a.BeginScope(jobId))
            {
                scope.Run();
            }
        }
Beispiel #2
0
 public IActionResult Novo()
 {
     Venda      = MyActivator.CreateInstance <Venda>();
     Venda.Data = DateTime.Now;
     return(View(Venda as Venda));
 }