public void StartStream(UInt32 AppID, StreamStartedResponseHandler StreamStartedResponseHandler)
        {
            AssertInitialized();
            if (AppID == 0)
            {
                throw new ArgumentOutOfRangeException("AppID", "Must be greater than 0");
            }
            if (StreamStartedResponseHandler == null)
            {
                throw new ArgumentNullException("StreamStartedResponseHandler");
            }
            this.StreamStartedResponseHandler = StreamStartedResponseHandler;
            CMsgRemoteClientStartStream StartStreamRequest = new CMsgRemoteClientStartStream();

            StartStreamRequest.app_id = (UInt32)AppID;
            AddOutgoingMessageToQueue(StartStreamRequest);
        }
예제 #2
0
 public Task <CMsgRemoteClientStartStreamResponse> StartStream(CMsgRemoteClientStartStream startStream)
 {
     startStreamTCS = new TaskCompletionSource <CMsgRemoteClientStartStreamResponse>();
     conn.SendPacket(EMsg.RemoteClientStartStream, startStream.ToByteArray());
     return(startStreamTCS.Task);
 }