Dev2.Workspaces.WorkspaceRepository.Save C# (CSharp) Method

Save() public method

Saves the specified workspace to storage.
public Save ( IWorkspace workspace ) : void
workspace IWorkspace The workspace to be saved.
return void
        public void Save(IWorkspace workspace)
        {
            if(workspace == null)
            {
                return;
            }

            // The workspace is expected to only contain client-side values
            // To avoid nulling out server-side values we persist it first
            // as this only seriliazes client-side values.
            Write(workspace);

            // Force reload of the new version
            Get(workspace.ID, true);
        }