public ChatTopic UploadChatTopic(Chat tag, HypertextFormatType formatType, string hypertext, int miningLimit, TimeSpan miningTime, DigitalSignature digitalSignature) { lock (this.ThisLock) { var uploadItem = new UploadItem(); uploadItem.Type = "ChatTopic"; uploadItem.ChatTopic = new ChatTopic(tag, DateTime.UtcNow, formatType, hypertext, digitalSignature); uploadItem.MiningLimit = miningLimit; uploadItem.MiningTime = miningTime; uploadItem.DigitalSignature = digitalSignature; _settings.UploadItems.RemoveAll((target) => { return(target.Type == uploadItem.Type && target.ChatTopic.Tag == uploadItem.ChatTopic.Tag && target.DigitalSignature == digitalSignature); }); _settings.UploadItems.Add(uploadItem); return(uploadItem.ChatTopic); } }
public WikiPage(string path, DateTime creationTime, HypertextFormatType formatType, string hypertext) { this.Path = path; this.CreationTime = creationTime; this.FormatType = formatType; this.Hypertext = hypertext; }
internal ChatTopic(Chat tag, DateTime creationTime, HypertextFormatType formatType, string hypertext, DigitalSignature digitalSignature) { this.Tag = tag; this.CreationTime = creationTime; this.FormatType = formatType; this.Hypertext = hypertext; this.CreateCertificate(digitalSignature); }
public ChatTopic UploadChatTopic(Chat tag, HypertextFormatType formatType, string hypertext, int miningLimit, TimeSpan miningTime, DigitalSignature digitalSignature) { if (_disposed) { throw new ObjectDisposedException(this.GetType().FullName); } lock (this.ThisLock) { return(_uploadManager.UploadChatTopic(tag, formatType, hypertext, miningLimit, miningTime, digitalSignature)); } }