示例#1
0
        public virtual async Task <TMTTenant> CreateAsync(string name)
        {
            Check.NotNull(name, nameof(name));

            await ValidateNameAsync(name);

            var generator = new SequentialUniqueKeyGenerator();

            return(new TMTTenant(generator.Create(), name));
        }
示例#2
0
        public Message(string content, string type, string status, string senderName, string receiverName, string conversationId)
        {
            Content        = content;
            Type           = type;
            Status         = status;
            SenderName     = senderName;
            ReceiverName   = receiverName;
            ConversationId = conversationId;
            var generator = new SequentialUniqueKeyGenerator();

            this.Id = generator.Create();
        }
示例#3
0
        public Widget(
            string name,
            string owner,
            string logo,
            string welcomeMessage,
            string primaryColor,
            string teamIntro,
            string backgroundColor,
            string objectConfigs)
        {
            Name            = name;
            Owner           = owner;
            Logo            = logo;
            WelcomeMessage  = welcomeMessage;
            PrimaryColor    = primaryColor;
            TeamIntro       = teamIntro;
            BackgroundColor = backgroundColor;
            ObjectConfigs   = objectConfigs;
            var generator = new SequentialUniqueKeyGenerator();

            this.Id = generator.Create();
        }
示例#4
0
        public Widget()
        {
            var generator = new SequentialUniqueKeyGenerator();

            this.Id = generator.Create();
        }
示例#5
0
        public Conversation()
        {
            var generator = new SequentialUniqueKeyGenerator();

            this.Id = generator.Create();
        }