コード例 #1
0
ファイル: Rules.cs プロジェクト: DmT021/Urfunet
 public override void Eval(Client c, IFSObject obj)
 {
     base.Eval(c, obj);
     var srcFile = obj as BaseFile;
     if (c.GetFileReplics(srcFile).Contains(c))/// srcFile.InReplics(c.Id))
     {
         var owner = c.GetFileOwner(srcFile);
         c.Log(LogLevel.Info, "Получение реплики для {0}", srcFile.Name);
         if (owner != null && owner.IsRemote)
             (owner as RemoteClient).Send(new DownloadFileMessage(srcFile, null));
     }
 }