OpenHome.Net.Device.Providers.DvProviderUpnpOrgConnectionManager1.EnableActionGetCurrentConnectionInfo C# (CSharp) Method

EnableActionGetCurrentConnectionInfo() protected method

Signal that the action GetCurrentConnectionInfo is supported.
The action's availability will be published in the device's service.xml. GetCurrentConnectionInfo must be overridden if this is called.
protected EnableActionGetCurrentConnectionInfo ( ) : void
return void
        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));
        }