예제 #1
0
 private static void MemoriaExport()
 {
     if (Interlocked.CompareExchange(ref _initialized, 1, 0) == 0)
     {
         ResourceExporter.ExportSafe();
         ResourceImporter.Initialize();
     }
 }
예제 #2
0
    public static void ExportAssetBundleResource()
    {
        ResourceExporter _exporter = new ResourceExporter();

        _exporter.ExportAb();
        _exporter = null;
        System.GC.Collect();
    }
        public void TestInitialize()
        {
            _listItemSystemUpdated = false;
            _fileAdded             = false;
            _shimObject            = ShimsContext.Create();

            SetupShims();

            _testObj = new ResourceExporter(_web.Instance);
        }
예제 #4
0
        public void ProcessRequest(HttpContext context)
        {
            var languages    = context.Request.QueryString["languages"].Split(',');
            var resourceSets = context.Request.QueryString["resourceSets"].Split(',');
            var ns           = (context.Request.QueryString["ns"] ?? String.Empty);

            var exporter = new ResourceExporter(languages, resourceSets, ns);
            var xml      = exporter.Export().ToXml();

            context.Response.Clear();

            context.Response.AddHeader("Content-Disposition", "attachment; filename=export.xml");
            context.Response.AddHeader("Content-Type", "application/xml");

            context.Response.Write(xml);
        }
예제 #5
0
 public CosturaFileExporter(ResourceExporter resourceExporter)
 {
     this.resourceExporter = resourceExporter;
 }
예제 #6
0
 public NotifyPropertyWeaverFileExporter()
 {
     resourceExporter = new ResourceExporter();
 }
예제 #7
0
 public NotifyPropertyWeaverFileExporter(ResourceExporter resourceExporter)
 {
     this.resourceExporter = resourceExporter;
 }
예제 #8
0
 public CosturaFileExporter(ResourceExporter resourceExporter)
 {
     this.resourceExporter = resourceExporter;
 }
 public NotifyPropertyWeaverFileExporter(ResourceExporter resourceExporter)
 {
     this.resourceExporter = resourceExporter;
 }
 public NotifyPropertyWeaverFileExporter()
 {
     resourceExporter = new ResourceExporter();
 }