projects/wms-framework/src/lib/wcfserviceinvocationsupport/InvokeAsyncCompletedEventArgs.ts
Service Completed event args object
Properties |
|
Methods |
|
Accessors |
constructor(results: any[], error: Exception, cancelled: boolean, userState: any)
|
Creates an instance of InvokeAsyncCompletedEventArgs. |
Private results |
Type : any[]
|
Private _cancelled |
Type : boolean
|
Default value : false
|
Inherited from
AsyncCompletedEventArgs
|
Defined in
AsyncCompletedEventArgs:28
|
Private _error |
Type : Exception
|
Default value : null
|
Inherited from
AsyncCompletedEventArgs
|
Defined in
AsyncCompletedEventArgs:29
|
Private _state |
Type : object
|
Default value : null
|
Inherited from
AsyncCompletedEventArgs
|
Defined in
AsyncCompletedEventArgs:30
|
Protected RaiseExceptionIfNecessary |
RaiseExceptionIfNecessary()
|
Inherited from
AsyncCompletedEventArgs
|
Defined in
AsyncCompletedEventArgs:51
|
Raises a user-supplied exception if an asynchronous operation failed.
Returns :
void
|
Results |
getResults()
|
Stores the service results
Returns :
any[]
|
import { Exception } from '../baseframework/Exceptions';
import { AsyncCompletedEventArgs } from './AsyncCompletedEventArgs';
/**
* Service Completed event args object
*
* @export
* @class InvokeAsyncCompletedEventArgs
* @wType System.ServiceModel.ClientBase`1+InvokeAsyncCompletedEventArgs
*/
export class InvokeAsyncCompletedEventArgs extends AsyncCompletedEventArgs {
private results: any[];
/**
* Creates an instance of InvokeAsyncCompletedEventArgs.
* @param {any[]} results
* @param {Exception} error
* @param {boolean} cancelled
* @param {any} userState
* @memberof InvokeAsyncCompletedEventArgs
*/
constructor(
results: any[],
error: Exception,
cancelled: boolean,
userState: any
) {
super(error, cancelled, userState);
this.results = results;
}
/**
* Stores the service results
*
* @type {any[]}
* @memberof InvokeAsyncCompletedEventArgs
*/
public get Results(): any[] {
return this.results;
}
}