コード例 #1
0
ファイル: ReplyEntity.cs プロジェクト: ptolemy/MSGorilla
        public ReplyEntity(Reply reply)
        {
            this.PartitionKey = reply.MessageID;
            this.RowKey = string.Format("{0}_{1}",
                Utils.ToAzureStorageSecondBasedString(reply.PostTime.ToUniversalTime()),
                Guid.NewGuid().ToString());

            Content = reply.toJsonString();
        }
コード例 #2
0
        public ReplyNotificationEntifity(string userid, Reply reply)
        {
            this.PartitionKey = userid;
            this.RowKey = string.Format(
                    "{0}_{1}",
                    Utils.ToAzureStorageSecondBasedString(reply.PostTime.ToUniversalTime()),
                    Guid.NewGuid().ToString()
                );

            Content = reply.toJsonString();
        }