Change-Id: Ibb86a4447f93e8c76c673dc1ac9212344a796999
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
}
/// <summary>
+ /// Disconnects from the service app.
+ /// </summary>
+ /// <exception cref="System.InvalidOperationException">
+ /// Thrown when an internal IO error occurrs.
+ /// </exception>
+ public void Disconnect()
+ {
+ Port?.Disconnect();
+ }
+
+ /// <summary>
/// Connects to the service app synchronously.
/// </summary>
/// <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
get; internal set;
}
+ public Port Port
+ {
+ internal get;
+ internal set;
+ }
+
protected ServiceBase()
{
}
/// <summary>
+ /// Disconnects from the proxy app
+ /// </summary>
+ /// <exception cref="System.InvalidOperationException">
+ /// Thrown when an internal IO error occurrs.
+ /// </exception>
+ protected void Disconnect()
+ {
+ Port?.Disconnect();
+ Port = null;
+ }
+
+ /// <summary>
/// This method will be called when the client is connected
/// </summary>
public abstract void OnCreate();
ServiceBase s = Activator.CreateInstance(_serviceType) as ServiceBase;
s.Sender = sender;
s.Instance = instance;
+ s.Port = GetPort(PortType.Callback, instance);
s.OnCreate();
_services.Add(s);
}