csharp/a1q123456/Harmonic/Harmonic/Controllers/Record/RecordController.cs

RecordController.cs
using Harmonic.Networking.Rtmp.Messages;
using Harmonic.Rpc;
using System;
using System.Collections.Generic;
using System.Text;

namespace Harmonic.Controllers.Record
{
    public clast RecordController : RtmpController
    {
        [RpcMethod("createStream")]
        public uint CreateStream()
        {
            var stream = RtmpSession.CreateNetStream();
            return stream.MessageStream.MessageStreamId;
        }
    }
}