ApplicationAdapter class serves as a base class for your WebORB messaging applications.
It provides methods to work with SharedObjects and streams, as well as connections and scheduling services.
ApplicationAdapter is an application level IScope. To handle streaming processes in your application you should
implement IStreamAwareScopeHandler interface and implement handling methods.
Application adapter provides you with useful event handlers that can be used to intercept streams, authorize users, etc.
Also, all methods added in subclasses can be called from client side with NetConnection.call
method. Unlike to Flash Media server which requires you to keep methods on Client object at server side,
WebORB offers much more convenient way to add methods for remote invocation to your applications.
Namespace: Weborb.Messaging.Server.AdapterAssembly: weborb (in weborb.dll) Version: 4.4.0.0 (4.4.0.0)
Syntax
| C# |
|---|
public class ApplicationAdapter : StatefulScopeWrappingAdapter, ISharedObjectService, IBroadcastStreamService, IOnDemandStreamService, ISubscriberStreamService, ISchedulingService, IStreamSecurityService, IScopeService |
| Visual Basic |
|---|
Public Class ApplicationAdapter _ Inherits StatefulScopeWrappingAdapter _ Implements ISharedObjectService, IBroadcastStreamService, IOnDemandStreamService, ISubscriberStreamService, _ ISchedulingService, IStreamSecurityService, IScopeService |
| Visual C++ |
|---|
public ref class ApplicationAdapter : public StatefulScopeWrappingAdapter, ISharedObjectService, IBroadcastStreamService, IOnDemandStreamService, ISubscriberStreamService, ISchedulingService, IStreamSecurityService, IScopeService |
Examples
Consider the following example:
CopyC#
This method added to ApplicationAdapter sublass can be called from client side with the following code:
CopyC#
If you want to build a server-side framework this is a place to start and wrap it around ApplicationAdapter subclass.
public ArrayList getListOfAvailableFLVs()<br /> {<br /> // Implementation goes here<br /> }<br />
var nc:NetConnection = new NetConnection();<br /> nc.connect(...);<br /> nc.call("getListOfAvailableFLVs", resultHandler);<br />
Inheritance Hierarchy
System..::..Object
Weborb.Messaging.Server.Adapter..::..AbstractScopeAdapter
Weborb.Messaging.Server.Adapter..::..StatefulScopeWrappingAdapter
Weborb.Messaging.Server.Adapter..::..ApplicationAdapter
Weborb.Data.Management..::..DataService
Weborb.Management.DataManagement.Codegen..::..AppHandler
Weborb.Messaging.Server.Adapter..::..AbstractScopeAdapter
Weborb.Messaging.Server.Adapter..::..StatefulScopeWrappingAdapter
Weborb.Messaging.Server.Adapter..::..ApplicationAdapter
Weborb.Data.Management..::..DataService
Weborb.Management.DataManagement.Codegen..::..AppHandler