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)); }
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(); }
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(); }
public Widget() { var generator = new SequentialUniqueKeyGenerator(); this.Id = generator.Create(); }
public Conversation() { var generator = new SequentialUniqueKeyGenerator(); this.Id = generator.Create(); }