Пример #1
0
        public static void ProcessUpdateWebContent(UpdateWebContentOperation operation)
        {
            string sourceContainerName = operation.SourceContainerName;
            string sourcePathRoot      = operation.SourcePathRoot;
            string targetContainerName = operation.TargetContainerName;
            string targetPathRoot      = operation.TargetPathRoot;
            bool   renderWhileSync     = operation.RenderWhileSync;

            WorkerSupport.WebContentSync(sourceContainerName, sourcePathRoot, targetContainerName, targetPathRoot,
                                         renderWhileSync
                                             ? (WorkerSupport.PerformCustomOperation)RenderWebSupport.RenderingSyncHandler
                                             : (WorkerSupport.PerformCustomOperation)RenderWebSupport.CopyAsIsSyncHandler);
        }
Пример #2
0
 public static void ProcessUpdateWebContent(UpdateWebContentOperation operation)
 {
     string sourceContainerName = operation.SourceContainerName;
     string sourcePathRoot = operation.SourcePathRoot;
     string targetContainerName = operation.TargetContainerName;
     string targetPathRoot = operation.TargetPathRoot;
     bool renderWhileSync = operation.RenderWhileSync;
     WorkerSupport.WebContentSync(sourceContainerName, sourcePathRoot, targetContainerName, targetPathRoot,
                                  renderWhileSync
                                      ? (WorkerSupport.PerformCustomOperation)RenderWebSupport.RenderingSyncHandler
                                      : (WorkerSupport.PerformCustomOperation)RenderWebSupport.CopyAsIsSyncHandler);
 }