Наследование: IMyTask
Пример #1
0
        public ActionResult Index()
        {
            var domainObject = new MyDomainObject();
            var task = new MyTask();

            task.DoSomething(domainObject);

            return View();
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            var domainObject = new MyDomainObject();
            var task = new MyTask();

            task.DoSomething(domainObject);
        }