Class ProxyBase
Definition
- Namespace:
- Tizen.Applications.RPCPort
- Assembly:
- Tizen.Applications.Common.dll
Abstract class for creating a proxy class for RPC.
public abstract class ProxyBase : IDisposable
- Inheritance
-
objectProxy
Base
- Implements
-
System.
IDisposable
Constructors
View SourceProxyBase()
Constructor for this class.
Declaration
public ProxyBase()
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown when internal IO error occurs. |
Properties
View SourceCallbackPort
Gets Port object for asynchronous events.
Declaration
protected Port CallbackPort { get; }
Property Value
Type | Description |
---|---|
Port |
Port
Gets Port object.
Declaration
protected Port Port { get; }
Property Value
Type | Description |
---|---|
Port |
Methods
View SourceConnect(string, string)
Connects to port.
Declaration
protected void Connect(string appid, string port)
Parameters
Type | Name | Description |
---|---|---|
string | appid | The target stub app ID. |
string | port | The name of the RPC port. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown when not available app ID is used. |
Invalid |
Thrown when an internal IO error occurs. |
Permission |
Thrown when the permission is denied. |
Dispose()
Release all resources used by the class ProxyBase.
Declaration
public void Dispose()
~ProxyBase()
Finalizer of the class ProxyBase.
Declaration
protected ~ProxyBase()
GetPort(Type)
Gets a port.
Declaration
protected Port GetPort(Port.Type t)
Parameters
Returns
Type | Description |
---|---|
Port | Port object. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown when an internal IO error occurs. |
OnConnectedEvent(string, string, Port)
Abstract method for receiving connected event.
Declaration
protected abstract void OnConnectedEvent(string endPoint, string portName, Port port)
Parameters
Type | Name | Description |
---|---|---|
string | endPoint | The target stub app ID. |
string | portName | The name of the RPC port. |
Port | port | Port object for reading and writing. |
OnDisconnectedEvent(string, string)
Abstract method for receiving disconnected event.
Declaration
protected abstract void OnDisconnectedEvent(string endPoint, string portName)
Parameters
Type | Name | Description |
---|---|---|
string | endPoint | The target stub app ID. |
string | portName | The name of the port. |
OnReceivedEvent(string, string)
Abstract method called when the proxy receives data from stub.
Declaration
protected abstract void OnReceivedEvent(string endPoint, string portName)
Parameters
Type | Name | Description |
---|---|---|
string | endPoint | The target stub app ID. |
string | portName | The name of the RPC port. |
OnRejectedEvent(string, string)
Abstract method for receiving rejected event.
Declaration
protected abstract void OnRejectedEvent(string endPoint, string portName)
Parameters
Type | Name | Description |
---|---|---|
string | endPoint | The target stub app ID. |
string | portName | The name of the RPC port. |