AsyncWcfLib

ActorPort Members

ActorPort overview

Public Static Methods

DisconnectAll (static) Close all incoming network connections and send a ServiceDisable messages to WcfRouterService. Disconnects all outgoing network connections and send ClientDisconnectRequest to connected services.

Public Instance Constructors

ActorPort Overloaded. Initializes a new instance of the ActorPort class.

Public Instance Properties

AddressListTo support networks without DNS server, the WcfRouter sends a list of all IP-Adresses of a host.May be null, when no info from WcfRouter has been received yet.
AppIdentification The AppIdentification is composed from AppName, HostName, AppInstance and processId to for a unique string
AppInstance Unique instance number of the application (unique in a plant or on a host, depending on WcfDefault.IsAppIdUniqueInPlant).
AppName Unique name of an application or service in the users WcfContract.Namespace.
AppVersion Assembly version of the application.
CifComponentName Assembly name of an important CifComponent containig some messages
CifVersion Assembly version of the important CifComponent
HostName Host running the application
IsMultithreaded Multithreaded partners do not use a message input queue. All threads may directly call InputHandler delegates. Default = false.
IsServiceName IsServiceName=true : A service name must be unique in the plant, independant of host or application. IsServiceName=false: A client name must for unique identification be combined with application name, host name, instance- or process id.
LastRequestIdSent The request id given to the last message sent from this client. The request id is incremented by the client for each request. The same id is returned in the response from the service. It is used to detect programming erors leading to request/response mismatch.
LastSentId The send id given to the last message sent from this sender. It is used to detect missing messages on the receiving side.
Logger Set your logging object here (null by default). It is passed to the logging methods of WcfTrc.ITracePlugin. You will use it when writing your own adapter class based on WcfTrc.ITracePlugin. The adapter class is needed to redirect trace output to your own logging/tracing framework.
Name Identification in Trace and name of endpoint address in App.config file.
ProcessId Process id of the application, given by the operating system (unique on a host at a certain time).
TimeoutSeconds After a service has no message received for TimeoutSeconds, it may render the connection to this client as disconnected. 0 means no timeout. The client should send at least 2 messages each TimeoutSeconds-period in order to keep the correct connection state on the service. A Service is trying to notify 2 messages each TimeoutSeconds-period in order to check a dual-Http connection.
TraceConnect Trace switch: Traces connect/disconnect messages (not to the router). Default = true;
TraceReceive Trace switch: Traces all received messages. Default = false;
TraceSend Trace switch: Traces all sent messages. Default = false;
UriUniversal resource identifier to reach the input of the service or client.E.g. RouterService: http://localhost:40000/AsyncWcfLib/RouterService

Public Instance Methods

ClockSecondsPassed Check if time has passed.
Disconnect Shutdown the outgoing remote connection. Send a disconnect message to the partner. Close the incoming network connection.
Equals (inherited from Object)
GetHashCode (inherited from Object)
GetType (inherited from Object)
PostInput Used by the library to post a request or response message to the input of this partner. May be called on any thread. Usage: Internal: Post a message into this partners input queue. Serviceside: Sender.PostInput() sends a response from client-stub to the remote client. Clientside: Post a response into this clients input queue.
StartClockSeconds Start the timer. Use ClockSecondsPassed() to check whether time has passed.
ToStringOverloaded. Trace or display status info

Protected Instance Fields

m_Connected False when not connected or disconnected. Prevents message passing during shutdown.
m_RedirectIncoming Incoming messages are directly redirected to this partner (used library intern)

Protected Instance Methods

Finalize (inherited from Object)
MemberwiseClone (inherited from Object)
OnConnectDisconnect Message is passed to users connect/disconnect event handler, may be overloaded and call a WcfMessageHandler<TSC>

See Also

ActorPort Class | SourceForge.AsyncWcfLib Namespace