File

projects/wms-framework/src/lib/wcfserviceinvocationsupport/WcfChannelFactoryBase.ts

Description

Services Binding Context

Implements

IChannelFactory

Index

Methods

Methods

Abort
Abort()

Abort method

Returns : void
BeginClose
BeginClose(callback: AsyncCallback, asyncState: any)

BeginClose method

Parameters :
Name Type Optional
callback AsyncCallback No
asyncState any No
Returns : IAsyncResult

{IAsyncResult}

BeginCloseWithTimeout
BeginCloseWithTimeout(timeout: TimeRange, callback: AsyncCallback, asyncState: any)

BeginCloseWithTimeout method

Parameters :
Name Type Optional
timeout TimeRange No
callback AsyncCallback No
asyncState any No
Returns : IAsyncResult

{IAsyncResult}

BeginOpen
BeginOpen(callback: AsyncCallback, asyncState: any)

BeginOpen method

Parameters :
Name Type Optional
callback AsyncCallback No
asyncState any No
Returns : IAsyncResult

{IAsyncResult}

BeginOpenWithTimeout
BeginOpenWithTimeout(timeout: TimeRange, callback: AsyncCallback, asyncState: any)

BeginOpenWithTimeout method

Parameters :
Name Type Optional
timeout TimeRange No
callback AsyncCallback No
asyncState any No
Returns : IAsyncResult

{IAsyncResult}

CloseWithTimeout
CloseWithTimeout(timeout: TimeRange)

CloseWithTimeout method

Parameters :
Name Type Optional
timeout TimeRange No
Returns : void
CreateChannel
CreateChannel(to: EndpointAddress, via: Uri)

CreateChannel method

Parameters :
Name Type Optional
to EndpointAddress No
via Uri No
Returns : any

{*}

EndClose
EndClose(result: IAsyncResult)

EndClose method

Parameters :
Name Type Optional
result IAsyncResult No
Returns : any
EndClose
EndClose(result: IAsyncResult)
Parameters :
Name Type Optional
result IAsyncResult No
Returns : any
EndClose
EndClose(result: any)
Parameters :
Name Type Optional
result any No
Returns : void
EndOpen
EndOpen(result: IAsyncResult)

EndOpen method

Parameters :
Name Type Optional
result IAsyncResult No
Returns : void
GetProperty
GetProperty(TParam: ClassType)
Type parameters :
  • T

GetProperty method

Parameters :
Name Type Optional
TParam ClassType No
Returns : T

{T}

OnCreateChannel
OnCreateChannel(to: EndpointAddress, via: Uri)

OnCreateChannel method.

Parameters :
Name Type Optional
to EndpointAddress No
via Uri No
Returns : any

{*}

OpenWithTimeout
OpenWithTimeout(timeout: TimeRange)

OpenWithTimeout method

Parameters :
Name Type Optional
timeout TimeRange No
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.');
  }
}

result-matching ""

    No results matching ""