protected void EnableActionGetCurrentConnectionInfo()
{
OpenHome.Net.Core.Action action = new OpenHome.Net.Core.Action("GetCurrentConnectionInfo");
List<String> allowedValues = new List<String>();
action.AddInputParameter(new ParameterInt("ConnectionID"));
action.AddOutputParameter(new ParameterInt("RcsID"));
action.AddOutputParameter(new ParameterInt("AVTransportID"));
action.AddOutputParameter(new ParameterString("ProtocolInfo", allowedValues));
action.AddOutputParameter(new ParameterString("PeerConnectionManager", allowedValues));
action.AddOutputParameter(new ParameterInt("PeerConnectionID"));
allowedValues.Add("Input");
allowedValues.Add("Output");
action.AddOutputParameter(new ParameterString("Direction", allowedValues));
allowedValues.Clear();
allowedValues.Add("OK");
allowedValues.Add("ContentFormatMismatch");
allowedValues.Add("InsufficientBandwidth");
allowedValues.Add("UnreliableChannel");
allowedValues.Add("Unknown");
action.AddOutputParameter(new ParameterString("Status", allowedValues));
allowedValues.Clear();
iDelegateGetCurrentConnectionInfo = new ActionDelegate(DoGetCurrentConnectionInfo);
EnableAction(action, iDelegateGetCurrentConnectionInfo, GCHandle.ToIntPtr(iGch));
}