AsyncWcfLib

ActorInput(TSC) Members

ActorInput(TSC) overview

Public Instance Constructors

ActorInput(TSC) Constructor Creates a ActorInput using a handler method with TSC object for each client.

Public Instance Properties

AddressList (inherited from ActorPort)To 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 (inherited from ActorPort) The AppIdentification is composed from AppName, HostName, AppInstance and processId to for a unique string
AppInstance (inherited from ActorPort) Unique instance number of the application (unique in a plant or on a host, depending on WcfDefault.IsAppIdUniqueInPlant).
AppName (inherited from ActorPort) Unique name of an application or service in the users WcfContract.Namespace.
AppVersion (inherited from ActorPort) Assembly version of the application.
BasicService (inherited from ActorInput) When the input is linked to network, BasicService provides some informations about the WCF service.
CifComponentName (inherited from ActorPort) Assembly name of an important CifComponent containig some messages
CifVersion (inherited from ActorPort) Assembly version of the important CifComponent
HostName (inherited from ActorPort) Host running the application
InputStateFromNetwork (inherited from ActorInput)Gets or sets the state of the incoming connection from the network to the service.May be called from any thread.Setting InputStateFromNetwork to WcfState.Ok or WcfState.Connecting reconnects a previously disconnected link.These states may be set only after an initial call to TryConnect from the actors internal thread.Setting other states will disconnect the WCF service from network.
IsMultithreaded (inherited from ActorPort) Multithreaded partners do not use a message input queue. All threads may directly call InputHandler delegates. Default = false.
IsServiceName (inherited from ActorPort) 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 (inherited from ActorPort) 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 (inherited from ActorPort) The send id given to the last message sent from this sender. It is used to detect missing messages on the receiving side.
Logger (inherited from ActorPort) 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.
MustOpenInput (inherited from ActorInput) When true: TryConnect() must be called (will open the service host)
Name (inherited from ActorPort) Identification in Trace and name of endpoint address in App.config file.
OutstandingResponsesCount (inherited from ActorInput) Returns 0 for inputs.
ProcessId (inherited from ActorPort) Process id of the application, given by the operating system (unique on a host at a certain time).
TimeoutSeconds (inherited from ActorPort) 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 (inherited from ActorPort) Trace switch: Traces connect/disconnect messages (not to the router). Default = true;
TraceReceive (inherited from ActorPort) Trace switch: Traces all received messages. Default = false;
TraceSend (inherited from ActorPort) Trace switch: Traces all sent messages. Default = false;
Uri (inherited from ActorPort)Universal resource identifier to reach the input of the service or client.E.g. RouterService: http://localhost:40000/AsyncWcfLib/RouterService

Public Instance Methods

ClockSecondsPassed (inherited from ActorPort) Check if time has passed.
Disconnect (inherited from ActorInput) Close the incoming network connection.
DoPeriodicTasks (inherited from ActorInput)Check client connection-timeouts, should be called periodically.
Equals (inherited from Object)
GetHashCode (inherited from Object)
GetType (inherited from Object)
LinkInputToNetwork (inherited from ActorInput) Link this input to the network. Remote clients will be able to connect to this service after Open() has been called. When this method is not called, the service is accessible application internally only.
Open (inherited from ActorInput) Opens the service for incomming connections (same as TryConnect). The method is accessible only by the owner of this ActorInput object. No interface exposes the method. - Incoming connections from network: Opens a WCF service. Open picks up the synchronization context and must be called on the receiving thread only! A WcfPartnerMessage is received, when the connection is established. The connect-process runs asynchronous and does involve an address registration at the WcfRouter (when RouterClient is not disabled).
PostInput (inherited from ActorInput)Overloaded. Used internally: Threadsafe enqueue message at the receiving partner. No response is expected.
PostInput (inherited from ActorPort)Overloaded. 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.
PostInputFrom (inherited from ActorInput)Overloaded. Used internally: Threadsafe enqueue message at the receiving partner.
SendOut (inherited from ActorInput) May not be called.
StartClockSeconds (inherited from ActorPort) Start the timer. Use ClockSecondsPassed() to check whether time has passed.
ToString (inherited from ActorPort)Overloaded. Trace or display status info
TryConnect (inherited from ActorInput)

Public Instance Events

OnInputConnected The event is risen, when a client is connected to this service. The response to the WcfReqIdent is sent by AsyncWcfLib. No further response is required.
OnInputDisconnected The event is risen, when a client is disconnected from this service. The response to the WcfReqIdent is sent by AsyncWcfLib. No further response is required.

Protected Instance Fields

m_Connected (inherited from ActorPort) False when not connected or disconnected. Prevents message passing during shutdown.
m_RedirectIncoming (inherited from ActorPort) 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.

See Also

ActorInput<TSC> Class | SourceForge.AsyncWcfLib Namespace