Exemple #1
0
 public static void smethod_3(Uri uri_0, TimeSpan timeSpan_0, Action <GClass87> action_0, Action action_1)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     GClass88.Class66 class66 = new GClass88.Class66();
     // ISSUE: reference to a compiler-generated field
     class66.uri_0 = uri_0;
     // ISSUE: reference to a compiler-generated field
     class66.action_0 = action_0;
     // ISSUE: reference to a compiler-generated field
     class66.action_1 = action_1;
     // ISSUE: reference to a compiler-generated field
     // ISSUE: reference to a compiler-generated field
     class66.string_0 = GClass88.Combine_Cache_Dir_With_String_1(class66.uri_0.smethod_14());
     // ISSUE: reference to a compiler-generated field
     if (class66.string_0.smethod_15(timeSpan_0))
     {
         // ISSUE: reference to a compiler-generated method
         Task.Run(new Action(class66.method_0));
     }
     else
     {
         // ISSUE: reference to a compiler-generated field
         if (new FileInfo(class66.string_0).Length <= 0L)
         {
             return;
         }
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated field
         class66.action_0(new GClass87(File.ReadAllBytes(class66.string_0), class66.string_0, true));
     }
 }
Exemple #2
0
 public static byte[] smethod_2(Uri uri_0, TimeSpan timeSpan_0)
 {
     try
     {
         string str = GClass88.Combine_Cache_Dir_With_String_1(uri_0.smethod_14());
         if (!str.smethod_15(timeSpan_0))
         {
             return(File.ReadAllBytes(str));
         }
         try
         {
             byte[] bytes = new GClass78().DownloadFile(uri_0.ToString());
             File.WriteAllBytes(str, bytes);
             return(bytes);
         }
         catch
         {
             return(File.Exists(str) ? File.ReadAllBytes(str) : (byte[])null);
         }
     }
     catch
     {
         return((byte[])null);
     }
 }
Exemple #3
0
 public static byte[] smethod_4(string string_1)
 {
     if (GClass88.Check_If_Exists_In_Cache_Dir(string_1))
     {
         return(File.ReadAllBytes(GClass88.Combine_Cache_Dir_With_String_1(string_1)));
     }
     return((byte[])null);
 }
Exemple #4
0
 public static void smethod_0(string string_1)
 {
     if (!GClass88.Check_If_Exists_In_Cache_Dir(string_1))
     {
         return;
     }
     GClass6.smethod_6(GClass88.Combine_Cache_Dir_With_String_1(string_1));
 }
Exemple #5
0
 internal static string smethod_12(string string_1)
 {
     if (GClass88.Check_If_Exists_In_Cache_Dir(string_1))
     {
         return(File.ReadAllText(GClass88.Combine_Cache_Dir_With_String_1(string_1)));
     }
     return((string)null);
 }
Exemple #6
0
 public static bool Check_If_Exists_In_Cache_Dir(string string_1)
 {
     return(File.Exists(GClass88.Combine_Cache_Dir_With_String_1(string_1)));
 }
Exemple #7
0
 public static void smethod_10(string string_1, string[] string_2)
 {
     File.WriteAllLines(GClass88.Combine_Cache_Dir_With_String_1(string_1), string_2);
 }
Exemple #8
0
 public static void smethod_9(Uri uri_0, byte[] byte_0)
 {
     File.WriteAllBytes(GClass88.Combine_Cache_Dir_With_String_1(uri_0.smethod_14()), byte_0);
 }
Exemple #9
0
 public static DateTime smethod_6(string string_1)
 {
     return(new FileInfo(GClass88.Combine_Cache_Dir_With_String_1(string_1)).LastWriteTime);
 }