Difference between revisions of "ProxyManager"
(Created page with "The general management of proxies and all available operations for proxy objects are handled via the ProxyManager. The ProxyManager is an UBIK object provided by the Kernel. T...") |
|||
Line 1: | Line 1: | ||
The general management of proxies and all available operations for proxy objects are handled via the ProxyManager. | The general management of proxies and all available operations for proxy objects are handled via the ProxyManager. | ||
The ProxyManager is an UBIK object provided by the Kernel. The UBIK environment object provides access to an instance of an ProxyManager. | The ProxyManager is an UBIK object provided by the Kernel. The UBIK environment object provides access to an instance of an ProxyManager. | ||
+ | |||
+ | '''Example: Asking the Environment for an ProxyManager instance''' | ||
+ | |||
+ | <source lang="csharp"> | ||
+ | // Asking the Environment for an ProxyManager instance#. | ||
+ | |||
+ | using UBIK.Kernel; | ||
+ | |||
+ | UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager(); | ||
+ | |||
+ | </source> | ||
{{Hint|The ProxyManager can be used in coding / customizinmg only.}} | {{Hint|The ProxyManager can be used in coding / customizinmg only.}} | ||
{{Attention|There is no UI support of the ProxyManager (yet).}} | {{Attention|There is no UI support of the ProxyManager (yet).}} | ||
+ | |||
+ | |||
+ | '''Example: Maintaining the Import / Export Status of a Proxy object by using a ProxyManager''' | ||
+ | |||
+ | <source lang="csharp"> | ||
+ | // Maintaining the Import / Export Status of a Proxy object by using a ProxyManager. | ||
+ | |||
+ | using UBIK.Kernel; | ||
+ | using System.Collections.Generic; | ||
+ | |||
+ | // first we have to have a proxy object | ||
+ | UBIK.Interface.Proxy proxyInstance = GetProxyInstanceFromAnyWhere(); | ||
+ | |||
+ | // fetching a ProxyManager instance | ||
+ | UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager(); | ||
+ | |||
+ | //Queing the proxyInstance for Import | ||
+ | pxManager.QueueForImport(new List<Proxy>() { proxyInstance }) | ||
+ | |||
+ | //Queing the proxyInstance for Export | ||
+ | pxManager.QueueForExport(new List<Proxy>() { proxyInstance }) | ||
+ | |||
+ | </source> | ||
+ | |||
+ | |||
+ | '''Example: Import / Export a Proxy object by using a ProxyManager''' | ||
+ | |||
+ | <source lang="csharp"> | ||
+ | // Import / Export a Proxy object by using a ProxyManager#. | ||
+ | |||
+ | using UBIK.Kernel; | ||
+ | us | ||
+ | // first we have to have a proxy object | ||
+ | UBIK.Interface.Proxy proxyInstance = GetProxyInstanceFromAnyWhere(); | ||
+ | |||
+ | // fetching a ProxyManager instance | ||
+ | UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager(); | ||
+ | |||
+ | //Import Proxy | ||
+ | UBIK.Interface.ProxyUpdateInformation importResult = pxManager.UpdateProxyToUbik( proxyInstance ) | ||
+ | |||
+ | //Export Proxy | ||
+ | UBIK.Interface.ProxyExportInformation exportResult =pxManager.UpdateUbikToProxy( proxyInstance ) | ||
+ | |||
+ | </source> | ||
+ | |||
==See also== | ==See also== |
Revision as of 10:40, 30 January 2014
The general management of proxies and all available operations for proxy objects are handled via the ProxyManager. The ProxyManager is an UBIK object provided by the Kernel. The UBIK environment object provides access to an instance of an ProxyManager.
Example: Asking the Environment for an ProxyManager instance
// Asking the Environment for an ProxyManager instance#.
using UBIK.Kernel;
UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager();
using UBIK.Kernel;
UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager();
Example: Maintaining the Import / Export Status of a Proxy object by using a ProxyManager
// Maintaining the Import / Export Status of a Proxy object by using a ProxyManager.
using UBIK.Kernel;
using System.Collections.Generic;
// first we have to have a proxy object
UBIK.Interface.Proxy proxyInstance = GetProxyInstanceFromAnyWhere();
// fetching a ProxyManager instance
UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager();
//Queing the proxyInstance for Import
pxManager.QueueForImport(new List<Proxy>() { proxyInstance })
//Queing the proxyInstance for Export
pxManager.QueueForExport(new List<Proxy>() { proxyInstance })
using UBIK.Kernel;
using System.Collections.Generic;
// first we have to have a proxy object
UBIK.Interface.Proxy proxyInstance = GetProxyInstanceFromAnyWhere();
// fetching a ProxyManager instance
UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager();
//Queing the proxyInstance for Import
pxManager.QueueForImport(new List<Proxy>() { proxyInstance })
//Queing the proxyInstance for Export
pxManager.QueueForExport(new List<Proxy>() { proxyInstance })
Example: Import / Export a Proxy object by using a ProxyManager
// Import / Export a Proxy object by using a ProxyManager#.
using UBIK.Kernel;
us
// first we have to have a proxy object
UBIK.Interface.Proxy proxyInstance = GetProxyInstanceFromAnyWhere();
// fetching a ProxyManager instance
UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager();
//Import Proxy
UBIK.Interface.ProxyUpdateInformation importResult = pxManager.UpdateProxyToUbik( proxyInstance )
//Export Proxy
UBIK.Interface.ProxyExportInformation exportResult =pxManager.UpdateUbikToProxy( proxyInstance )
using UBIK.Kernel;
us
// first we have to have a proxy object
UBIK.Interface.Proxy proxyInstance = GetProxyInstanceFromAnyWhere();
// fetching a ProxyManager instance
UBIK.Interface.ProxyManager pxManager = anyUbikObject.Environment.GetProxyManager();
//Import Proxy
UBIK.Interface.ProxyUpdateInformation importResult = pxManager.UpdateProxyToUbik( proxyInstance )
//Export Proxy
UBIK.Interface.ProxyExportInformation exportResult =pxManager.UpdateUbikToProxy( proxyInstance )