Compartir a través de


HostedControlEx Class

Definition

Caution

This class has been deprecated, use HostedControl and the CTI Hosted control.

This makes it easier to create WinForm applications by wrapping the most common operations into a base class. It would be better to make this an abstract class and have the DoAction( Action ) method also be abstract. However doing so causes the VS 2003 UI designer to not allow drag-n-drop layout which most people will want. Thus, the obvious abstract-ness of this class is not being coded.

public ref class HostedControlEx : Microsoft::Uii::Csr::HostedControl, Microsoft::Uii::Csr::IHostedApplicationEx
[System.Obsolete("This class has been deprecated, use HostedControl and the CTI Hosted control.")]
public class HostedControlEx : Microsoft.Uii.Csr.HostedControl, Microsoft.Uii.Csr.IHostedApplicationEx
[<System.Obsolete("This class has been deprecated, use HostedControl and the CTI Hosted control.")>]
type HostedControlEx = class
    inherit HostedControl
    interface IHostedApplicationEx
    interface IHostedApplication3
    interface IHostedApplication2
    interface IHostedApplication
Public Class HostedControlEx
Inherits HostedControl
Implements IHostedApplicationEx
Inheritance
HostedControlEx
Attributes
Implements

Constructors

HostedControlEx()

Constructor

HostedControlEx(Guid, String, String)

Constructor

Fields

actions

Dictionary of actions

(Inherited from HostedControl)
actionsByID

Dictionary of actions

(Inherited from HostedControl)

Properties

AgentID

Useful for management apps that need to know who is logged into them. This is used for apps supporting the IHostedApplication2 interface.

(Inherited from HostedControl)
AgentLine

This is the agent's phone when using CTI

AppHostWorkItem

For CAB integration purposes only; allows injection of current WorkItem

(Inherited from HostedControl)
ApplicationHost

Intended to provide access to the containing ApplicationHost instance to support advanced hosting senarios. Usage may increase coupling between AIF hosted applications, running counter to the architectural intent of AIF. Setter is for internal use only, it will have no effect.

(Inherited from HostedControl)
ApplicationID

Returns the unique id for this hosted application.

(Inherited from HostedControl)
ApplicationName

Returns the name of the hosted application as given in the database.

(Inherited from HostedControl)
CanEmbed

Returns true if the application can be hosted within the UII panels. False if the application can only be integrated with UII via scripts.

(Inherited from HostedControl)
ConfigurationReader

Gets or set the hosted controls Configuration Value reader object.

(Inherited from HostedControl)
Context

Contains session-wide context. Modifying this also notifies other applications of the context change.

(Inherited from HostedControl)
Cti

Telephony member for controlling phones and calls

DisplayGroup

The name of the UII panel this application is hosted within. This is taken from the database Application table initialization XML.

(Inherited from HostedControl)
EnableAutoSignOn

Get the value of private member variable enableAutoSignOn.

(Inherited from HostedControl)
Icon

Used for hosted WinForm apps that want a simple way to set their icons.

(Inherited from HostedControl)
ImplementedAsCcf20

Allows system to run certain routines as CCF 2.0 or prior

(Inherited from HostedControl)
IsAdapterSessionController

Gets a boolean indicating whether the adapter is a SessionController.

(Inherited from HostedControl)
IsDynamic

Gets or sets a value indicating whether this instance is dynamic.

(Inherited from HostedControl)
IsGlobal

Tells whether the hosted application is global

(Inherited from HostedControl)
IsListed

Allows to be seen but not listed in SessionExplorer or CurrentSessionUI

(Inherited from HostedControl)
IsNavigating

Could be used to indicate an application is changing its state.

(Inherited from HostedControl)
IsTagged

When true, application is dependent on workflow

(Inherited from HostedControl)
OptimumSize

The size that the applications's window will initially be if it is a floating window.

(Inherited from HostedControl)
SessionManager

Allows hosted apps to have access to sessions

(Inherited from HostedControl)
Text

Sets/Gets the text for the window or tab control containing this application.

(Inherited from HostedControl)
TopLevelWindow

Returns a control for the owning window of this hosted app. If this is an external application, then null is returned.

(Inherited from HostedControl)

Methods

AddAction(Int32, String, String)

Adds an action for use from one application or the UII core to this application. An action with id of 1 is the default action and is called when initing the application. There is no requirement to have a default action though.

(Inherited from HostedControl)
AddImplicitAction(String)

Adds implicit action . Action Id will use the maximum available int .

(Inherited from HostedControl)
Close()

Called when the app is closed.

(Inherited from HostedControl)
DoAction(Action, String)
Obsolete.

Method to override in the implemention to handle the action.

(Inherited from HostedControl)
DoAction(Int32, String)
Obsolete.

Called to perform the action configured in the database. Do not override this method! To handle DoAction in your implementation override DoAction(RequestActionEventArgs) instead.

(Inherited from HostedControl)
DoAction(RequestActionEventArgs)

Method to override in the implementation to handle the action.

(Inherited from HostedControl)
DoAction(String, String)
Obsolete.

Called to perform the action configured in the database.

(Inherited from HostedControl)
DoDefaultAction()

Performs this hosted application's default action, if there is one. The default action is the one with an id of 1, but it is not required.

(Inherited from HostedControl)
ErrorMsg(String, String)

So hosted winform applications can use this and have the same error message style as the rest of the desktop.

(Inherited from HostedControl)
FireChangeContext(ContextEventArgs)

Informs all the other applications that the context has changed.

(Inherited from HostedControl)
FireRequestAction(RequestActionEventArgs)

Sends a request to perform some action to another application. If the RequestActionEventArgs has a target of *, then all apps get the action.

(Inherited from HostedControl)
GetIconList()

Gets the icon images

(Inherited from HostedControl)
GetStateData()

Gets the application state data for the windows application For now we retrieve only the InputText value

(Inherited from HostedControl)
HandleRequestAction(Object, RequestActionEventArgs)

This is for internal UII use only. Please do not use directly. Public visibility necessary for CAB integration.

(Inherited from HostedControl)
HandleRequestDefaultAction(Object, DataEventArgs<ApplicationProperties>)

This is for internal UII use only. Please do not use directly. Public visibility necessary for CAB integration.

(Inherited from HostedControl)
Initialize()

Called when the application should initialize its internal state

(Inherited from HostedControl)
NotifyContextChange(Context)

Event which happens whenever the context is changed.

(Inherited from HostedControl)
NotifyContextChange(String)
Obsolete.

Event which happens whenever the context is changed. This is called by the applicationHost

(Inherited from HostedControl)
SessionChange(Boolean, Guid)

Called for global applications when the session is activated or deactivated Not called for non-global applications.

(Inherited from HostedControl)
SetContext(Context)
Obsolete.

This is used to set the context from applicationhost without causing further notifications. It exists so that context can be updated quietly before doing the 'real' context notification because some applications fire actions onto other apps when the context changes and some actions are designed to depend upon context. In otherwords, a race condition.

(Inherited from HostedControl)
SetContext(String)
Obsolete.

This is used to set the context from applicationhost without causing further notifications. It exists so that context can be updated quietly before doing the 'real' context notification because some applications fire actions onto other apps when the context changes and some actions are designed to depend upon context. In otherwords, a race condition.

(Inherited from HostedControl)
SetStateData(String)

Sets the StateData to the controls

(Inherited from HostedControl)

Events

ActionCompleted
Obsolete.

For internal use

(Inherited from HostedControl)
ActionCompletedEvent

Event to notify ApplicationHost that an action has completed. Using CAB's EventBroker to publish the event topic.

(Inherited from HostedControl)
ChangeContext

This event is for internal UII use only and should not be used directly. If your hosted control wants to recieve context change notification, you should be overriding NotifyContextChange method in your implementation.

(Inherited from HostedControl)
RequestAction
Obsolete.

For internal use

(Inherited from HostedControl)
RequestActionEvent

Event to request an action of another application to be invoked. Using CAB's EventBroker to publish the event topic.

(Inherited from HostedControl)
RequestActionStatusEvent

Event to notify ApplicationHost of action status.

(Inherited from HostedControl)

Applies to