Beispiel #1
0
 /// <summary>
 /// Try to write web.config file
 /// </summary>
 /// <returns></returns>
 protected virtual bool TryWriteWebConfig()
 {
     try
     {
         _fileProvider.SetLastWriteTimeUtc(_fileProvider.MapPath(GSInfrastructureDefaults.WebConfigPath), DateTime.UtcNow);
         return(true);
     }
     catch
     {
         return(false);
     }
 }