1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
%typemap(cscode) RobotRaconteur::ServerContext
%{
public static string CurrentServicePath { get { return GetCurrentServicePath(); } }
public static ServerContext CurrentServerContext { get { return GetCurrentServerContext(); } }
public delegate void ServerServiceListenerDelegate(ServerContext service, ServerServiceListenerEventType ev, object parameter);
public void SetServiceAttributes(System.Collections.Generic.Dictionary<string, object> attributes)
{
MessageElement m = new MessageElement("value",RobotRaconteurNode.s.PackVarType(attributes));
_SetServiceAttributes(m);
}
public void AddServerServiceListener(ServerServiceListenerDelegate listener)
{
ServerServiceListenerDirectorNET d = new ServerServiceListenerDirectorNET(this, listener);
d.objectheapid = RRObjectHeap.AddObject(d);
_AddServerServiceListener(d);
}
public void ReleaseServicePath(string path)
{
_ReleaseServicePath(path);
}
public void ReleaseServicePath(string path, uint[] endpoints)
{
vectoruint32 o=new vectoruint32();
foreach(uint e in endpoints)
{
o.Add(e);
}
_ReleaseServicePath(path,o);
}
%}
%typemap(csclassmodifiers) RobotRaconteur::AuthenticatedUser "public partial class";
%typemap(cscode) RobotRaconteur::ServerEndpoint
%{
public static uint CurrentEndpoint { get { return GetCurrentEndpoint(); } }
%}
%typemap(csclassmodifiers) RobotRaconteur::WrappedServiceSkelAsyncAdapter "public partial class";
%include "Service.i"
|