コード例 #1
0
 /// <summary>
 /// Creates the entry.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="serialize">The serialize.</param>
 /// <exception cref="Exception">Key already exists exception</exception>
 protected void CreateEntry(string name, ISerialize serialize)
 {
     if (EntryNames.Contains(name))
     {
         throw new Exception(ErrorConstant.KEY_ALREADY_EXISTIS);
     }
     using (var zipFile = GetZipFile())
     {
         zipFile.AddEntry(name, new byte[1000000000]);
         zipFile.Save();
     }
 }
コード例 #2
0
ファイル: Cache.cs プロジェクト: AyrA/AnyBlock
 public static string[] GetAddresses(params RangeEntry[] EntryNames)
 {
     return(GetAddresses(EntryNames.AsEnumerable()));
 }