Esempio n. 1
0
        private void bwReplaceFilters_DoWork(object sender, DoWorkEventArgs e)
        {
            var worker      = (BackgroundWorker)sender;
            var sourceUser  = (Entity)((object[])e.Argument)[0];
            var targetUsers = (List <Entity>)((object[])e.Argument)[1];

            var rManager = new RuleManager("userquery", service);

            rManager.AddRulesFromUser(sourceUser, targetUsers, worker);
        }