Пример #1
0
        private static AsanaTask GetTask()
        {
            var options = new ProxyGenerationOptions();
            var changeable = new Changeable();
            options.AddMixinInstance(changeable);
            var task = Generator.Instance.CreateClassProxy<AsanaTask>(options, new ChangeInterceptor(changeable));

            changeable.TrackChanges = true;
            return task;

            //return new AsanaTask();
        }
Пример #2
0
 public ChangeInterceptor(Changeable changeable)
 {
     Changeable = changeable;
 }