Class ProxyBase
Definition
- Namespace:
- Tizen.Applications.RPCPort
- Assembly:
- Tizen.Applications.Common.dll
Abstract class for creating a proxy class for RPC.
C#Copypublic abstract class ProxyBase : IDisposable
- Inheritance
-
objectProxyBase
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic ProxyBase()
Exceptions
| Type | Condition |
|---|---|
| InvalidIOException | Thrown when internal IO error occurs. |
Properties
Declaration
C#Copyprotected Port CallbackPort { get; }
Property Value
| Type | Description |
|---|---|
| Port |
Declaration
C#Copyprotected Port Port { get; }
Property Value
| Type | Description |
|---|---|
| Port |
Methods
Declaration
C#Copyprotected 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 |
|---|---|
| InvalidIDException | Thrown when not available app ID is used. |
| InvalidIOException | Thrown when an internal IO error occurs. |
| PermissionDeniedException | Thrown when the permission is denied. |
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected ~ProxyBase()
Declaration
C#Copyprotected Port GetPort(Port.Type t)
Parameters
| Type | Name | Description |
|---|---|---|
| Port.Type | t | The type of port. |
Returns
| Type | Description |
|---|---|
| Port | Port object. |
Exceptions
| Type | Condition |
|---|---|
| InvalidIOException | Thrown when an internal IO error occurs. |
Declaration
C#Copyprotected 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. |
Declaration
C#Copyprotected 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. |
View Source
OnReceivedEvent(string, string)
Abstract method called when the proxy receives data from stub.
Declaration
C#Copyprotected 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. |
Declaration
C#Copyprotected 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. |
Implements
System.IDisposable