public void AddWeakEvent_Result_PrepareForConnection(Delegate_OnResult_PrepareForConnection d) { WeakList_PrepareForConnection.Add(new WeakReference(d)); }
public void PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction, object _Tag, Delegate_OnResult_PrepareForConnection _Callback) { UPnPArgument[] args = new UPnPArgument[7]; args[0] = new UPnPArgument("RemoteProtocolInfo", RemoteProtocolInfo); args[1] = new UPnPArgument("PeerConnectionManager", PeerConnectionManager); args[2] = new UPnPArgument("PeerConnectionID", PeerConnectionID); switch (Direction) { case Enum_A_ARG_TYPE_Direction.INPUT: args[3] = new UPnPArgument("Direction", "Input"); break; case Enum_A_ARG_TYPE_Direction.OUTPUT: args[3] = new UPnPArgument("Direction", "Output"); break; default: args[3] = new UPnPArgument("Direction", GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction")); break; } args[4] = new UPnPArgument("ConnectionID", ""); args[5] = new UPnPArgument("AVTransportID", ""); args[6] = new UPnPArgument("RcsID", ""); _S.InvokeAsync("PrepareForConnection", args, new object[2] { _Tag, _Callback }, new UPnPService.UPnPServiceInvokeHandler(Sink_PrepareForConnection), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_PrepareForConnection)); }
public void PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction, object _Tag, Delegate_OnResult_PrepareForConnection _Callback) { UPnPArgument[] args = new UPnPArgument[7]; args[0] = new UPnPArgument("RemoteProtocolInfo", RemoteProtocolInfo); args[1] = new UPnPArgument("PeerConnectionManager", PeerConnectionManager); args[2] = new UPnPArgument("PeerConnectionID", PeerConnectionID); switch(Direction) { case Enum_A_ARG_TYPE_Direction.INPUT: args[3] = new UPnPArgument("Direction", "Input"); break; case Enum_A_ARG_TYPE_Direction.OUTPUT: args[3] = new UPnPArgument("Direction", "Output"); break; default: args[3] = new UPnPArgument("Direction", GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction")); break; } args[4] = new UPnPArgument("ConnectionID", ""); args[5] = new UPnPArgument("AVTransportID", ""); args[6] = new UPnPArgument("RcsID", ""); _S.InvokeAsync("PrepareForConnection", args, new object[2]{_Tag,_Callback},new UPnPService.UPnPServiceInvokeHandler(Sink_PrepareForConnection), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_PrepareForConnection)); }
public void AddWeakEvent_Result_PrepareForConnection(Delegate_OnResult_PrepareForConnection d) { WeakList_PrepareForConnection.Add(new WeakReference(d)); }