projects/wms-framework/src/lib/wcfserviceinvocationsupport/WcfChannelFactoryBase.ts
Services Binding Context
Methods |
Abort |
Abort()
|
Abort method
Returns :
void
|
BeginClose | |||||||||
BeginClose(callback: AsyncCallback, asyncState: any)
|
|||||||||
BeginClose method
Parameters :
Returns :
IAsyncResult
{IAsyncResult} |
BeginCloseWithTimeout | ||||||||||||
BeginCloseWithTimeout(timeout: TimeRange, callback: AsyncCallback, asyncState: any)
|
||||||||||||
BeginCloseWithTimeout method
Parameters :
Returns :
IAsyncResult
{IAsyncResult} |
BeginOpen | |||||||||
BeginOpen(callback: AsyncCallback, asyncState: any)
|
|||||||||
BeginOpen method
Parameters :
Returns :
IAsyncResult
{IAsyncResult} |
BeginOpenWithTimeout | ||||||||||||
BeginOpenWithTimeout(timeout: TimeRange, callback: AsyncCallback, asyncState: any)
|
||||||||||||
BeginOpenWithTimeout method
Parameters :
Returns :
IAsyncResult
{IAsyncResult} |
CloseWithTimeout | ||||||
CloseWithTimeout(timeout: TimeRange)
|
||||||
CloseWithTimeout method
Parameters :
Returns :
void
|
CreateChannel | |||||||||
CreateChannel(to: EndpointAddress, via: Uri)
|
|||||||||
CreateChannel method
Parameters :
Returns :
any
{*} |
EndClose | ||||||
EndClose(result: IAsyncResult)
|
||||||
EndClose method
Parameters :
Returns :
any
|
EndClose | ||||||
EndClose(result: IAsyncResult)
|
||||||
Parameters :
Returns :
any
|
EndClose | ||||||
EndClose(result: any)
|
||||||
Parameters :
Returns :
void
|
EndOpen | ||||||
EndOpen(result: IAsyncResult)
|
||||||
EndOpen method
Parameters :
Returns :
void
|
GetProperty | ||||||
GetProperty(TParam: ClassType)
|
||||||
Type parameters :
|
||||||
GetProperty method
Parameters :
Returns :
T
{T} |
OnCreateChannel | |||||||||
OnCreateChannel(to: EndpointAddress, via: Uri)
|
|||||||||
OnCreateChannel method.
Parameters :
Returns :
any
{*} |
OpenWithTimeout | ||||||
OpenWithTimeout(timeout: TimeRange)
|
||||||
OpenWithTimeout method
Parameters :
Returns :
void
|
import { ClassType, TimeRange } from '../baseframework';
import { Uri } from '../baseframework/Uri';
import { ClassInfo } from '../decorators/ClassInfo';
import { Debugger } from '../diagnostics';
import { AsyncCallback, IAsyncResult } from './AsyncResultSupport';
import { IChannelFactory } from './channels';
import { ClientBase } from './ClientBase';
import { EndpointAddress } from './EndpointAddress';
import { HttpChannel } from './HttpChannel';
/**
* Services Binding Context
*
* @export
* @class WcfChannelFactoryBase
* @extends IChannelFactory
* @wType System.ServiceModel.Channels.ChannelFactoryBase`1
*/
@ClassInfo({
classId: 'System.ServiceModel.Channels.ChannelFactoryBase',
assembly: 'System.ServiceModel',
implements: ['System.ServiceModel.Channels.IChannelFactory`1'],
})
export class WcfChannelFactoryBase<T> implements IChannelFactory<T> {
/**
* EndClose method
*
* @param {IAsyncResult} result
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
EndClose(result: IAsyncResult);
EndClose(result: IAsyncResult);
EndClose(result: any) {
Debugger.Throw('Method not implemented.');
}
/**
* BeginClose method
*
* @param {AsyncCallback} callback
* @param {*} asyncState
* @return {*} {IAsyncResult}
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
BeginClose(callback: AsyncCallback, asyncState: any): IAsyncResult {
Debugger.Throw('Method not implemented.');
return null;
}
/**
* BeginCloseWithTimeout method
*
* @param {TimeRange} timeout
* @param {AsyncCallback} callback
* @param {*} asyncState
* @return {*} {IAsyncResult}
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
BeginCloseWithTimeout(
timeout: TimeRange,
callback: AsyncCallback,
asyncState: any
): IAsyncResult {
Debugger.Throw('Method not implemented.');
return null;
}
/**
* EndOpen method
*
* @param {IAsyncResult} result
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
EndOpen(result: IAsyncResult) {
Debugger.Throw('Method not implemented.');
}
/**
* BeginOpen method
*
* @param {AsyncCallback} callback
* @param {*} asyncState
* @return {*} {IAsyncResult}
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
BeginOpen(callback: AsyncCallback, asyncState: any): IAsyncResult {
Debugger.Throw('Method not implemented.');
return null;
}
/**
* BeginOpenWithTimeout method
*
* @param {TimeRange} timeout
* @param {AsyncCallback} callback
* @param {*} asyncState
* @return {*} {IAsyncResult}
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
BeginOpenWithTimeout(
timeout: TimeRange,
callback: AsyncCallback,
asyncState: any
): IAsyncResult {
Debugger.Throw('Method not implemented.');
return null;
}
/**
* Abort method
*
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
Abort(): void {
Debugger.Throw('Method not implemented.');
}
/**
* OpenWithTimeout method
*
* @param {TimeRange} timeout
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
OpenWithTimeout(timeout: TimeRange): void {
Debugger.Throw('Method not implemented.');
}
/**
* CloseWithTimeout method
*
* @param {TimeRange} timeout
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
CloseWithTimeout(timeout: TimeRange): void {
Debugger.Throw('Method not implemented.');
}
/**
* CreateChannel method
*
* @param {EndpointAddress} to
* @param {Uri} via
* @return {*} {*}
* @memberof WcfChannelFactoryBase
*/
CreateChannel(to: EndpointAddress, via: Uri): any {
return new HttpChannel(new ClientBase(via.AbsoluteUri, to));
}
/**
* GetProperty method
*
* @template T
* @param {ClassType} TParam
* @return {*} {T}
* @memberof WcfChannelFactoryBase
* @wIgnore
*/
GetProperty<T>(TParam: ClassType): T {
Debugger.Throw('Method not implemented.');
return null;
}
/**
* OnCreateChannel method.
*
* @param {EndpointAddress} to
* @param {Uri} via
* @return {*} {*}
* @memberof WcfChannelFactoryBase
* @wNoMap
*/
OnCreateChannel(to: EndpointAddress, via: Uri): any {
throw new Error('Method not implemented.');
}
}