C# Class Com.Aote.Behaviors.BaseAsyncAction

为一般异步动作提供了基础实现。 对象从DependencyObject继承,以便所有异步动作都可以有依赖属性。 同时继承INotifyPropertyChanged,以便所有异步动作都能够对外通知属性改变 继承IAsyncAction,完成异步动作的常用处理。 异步动作的具体执行过程(Invoke方法)是抽象的,交给子类去实现。
Inheritance: System.Windows.DependencyObject, INotifyPropertyChanged, IAsyncAction, IInitable
Datei anzeigen Open project: DuBin1988/restv2 Class Usage Examples

Public Properties

Property Type Description
CanSaveProperty System.Windows.DependencyProperty
ErrorProperty System.Windows.DependencyProperty

Public Methods

Method Description
FindResource ( string name ) : object
Init ( object ui ) : void
Invoke ( ) : void
OnCompleted ( AsyncCompletedEventArgs args ) : void

提供工作完成事件的通知方法,子类及自身在工作完成后,调用这个方法通知外部工作完成了。

OnInitFinished ( ) : void

Protected Methods

Method Description
OnPropertyChanged ( string info ) : void

提供属性改变事件的通知方法,子类及自身通过调用这个方法通知外界,属性改变了

Private Methods

Method Description
OnLoaded ( ) : void

Method Details

FindResource() public method

public FindResource ( string name ) : object
name string
return object

Init() public method

public Init ( object ui ) : void
ui object
return void

Invoke() public abstract method

public abstract Invoke ( ) : void
return void

OnCompleted() public method

提供工作完成事件的通知方法,子类及自身在工作完成后,调用这个方法通知外部工作完成了。
public OnCompleted ( AsyncCompletedEventArgs args ) : void
args System.ComponentModel.AsyncCompletedEventArgs
return void

OnInitFinished() public method

public OnInitFinished ( ) : void
return void

OnPropertyChanged() protected method

提供属性改变事件的通知方法,子类及自身通过调用这个方法通知外界,属性改变了
protected OnPropertyChanged ( string info ) : void
info string 变化了的属性名称
return void

Property Details

CanSaveProperty public_oe static_oe property

public static DependencyProperty,System.Windows CanSaveProperty
return System.Windows.DependencyProperty

ErrorProperty public_oe static_oe property

public static DependencyProperty,System.Windows ErrorProperty
return System.Windows.DependencyProperty