ActivityStreams.Api.Controllers.StreamController.AttachStream C# (CSharp) Method

AttachStream() private method

private AttachStream ( string streamId, string toStreamId, System.DateTime expiresAt = null ) : IHttpActionResult
streamId string
toStreamId string
expiresAt System.DateTime
return IHttpActionResult
        public IHttpActionResult AttachStream(string streamId, string toStreamId, DateTime? expiresAt = null)
        {
            if (expiresAt.HasValue == false)
                expiresAt = DateTime.FromFileTimeUtc(ActivityStream.DefaultExpirationTimestamp);


            var streamIdBytes = Encoding.UTF8.GetBytes(streamId);
            var toStreamIdBytes = Encoding.UTF8.GetBytes(toStreamId);
            WebApiApplication.StreamService.Attach(toStreamIdBytes, streamIdBytes, expiresAt.Value);

            return Ok();
        }