コード例 #1
0
ファイル: Program.cs プロジェクト: Seizure/ImgurTaggingBot
 /// <param name="ApplicationShutdownLock">
 /// This should be the same instance as passed to other objects;
 /// this class will acquire a write lock on the lock
 /// before allowing the process to shutdown cleanly
 /// </param>
 public Program(
     ProcessLatestCommentsActivity ActivityProcessComments,
     ImgurInterfacer Imgur,
     DiscordInterfacer Discord,
     TaglistRepository RepositoryTaglists,
     SettingsRepository RepositorySettings,
     SingleThreadReadWriteLock ApplicationShutdownLock
     )
 {
     this.Imgur                   = Imgur;
     this.Discord                 = Discord;
     this.RepositoryTaglists      = RepositoryTaglists;
     this.RepositorySettings      = RepositorySettings;
     this.ActivityProcessComments = ActivityProcessComments;
     this.ApplicationShutdownLock = ApplicationShutdownLock;
 }
コード例 #2
0
 public RegisterUserCommand(TaglistRepository Repository, ImgurInterfacer Imgur, Discord.MessageSender MessageSender) : base(MessageSender)
 {
     this.Repository = Repository;
     this.Imgur      = Imgur;
 }
コード例 #3
0
 protected TaglistCommandsBase(TaglistRepository Repository, Discord.MessageSender MessageSender) : base(MessageSender)
 {
     this.Repository = Repository;
 }
コード例 #4
0
 public QueryUserTaglistsCommand(TaglistRepository Repository, Discord.MessageSender MessageSender)
     : base(Repository, MessageSender)
 {
 }
コード例 #5
0
 public UnRegisterUserCommand(TaglistRepository Repository, Discord.MessageSender MessageSender) : base(MessageSender)
 {
     this.Repository = Repository;
 }
コード例 #6
0
 public ProcessTagCommandActivity(ImgurInterfacer Imgur, DiscordInterfacer Discord, TaglistRepository RepositoryTaglists)
 {
     this.Imgur              = Imgur;
     this.Discord            = Discord;
     this.RepositoryTaglists = RepositoryTaglists;
 }
コード例 #7
0
 public CacheingTaglistRepository(TaglistRepository Decorate)
 {
     this.Decorate = Decorate;
 }