Example #1
0
        public void SaveMediaSet(IMediaSet model)
        {
            if (model != null)
            {
                //lastSavedMediaSet = model;

                mediaSetsPendingSave[model.Id] = model;

                SaveMediaSetAsync handle = new SaveMediaSetAsync(SaveMediaSetInternal);
                handle.BeginInvoke(model, new AsyncCallback(SaveMediaSetComplete), model.Id);

                //Thread thread = new Thread(new ParameterizedThreadStart(SaveMediaSetInternal));
                //thread.IsBackground = true;
                //thread.Start(model);
            }
        }
		public void SaveMediaSet(IMediaSet model)
		{
			if (model != null)
			{
				//lastSavedMediaSet = model;
			
				mediaSetsPendingSave[model.Id] = model;
			
				SaveMediaSetAsync handle = new SaveMediaSetAsync(SaveMediaSetInternal);
				handle.BeginInvoke(model, new AsyncCallback(SaveMediaSetComplete), model.Id);
				
				//Thread thread = new Thread(new ParameterizedThreadStart(SaveMediaSetInternal));
				//thread.IsBackground = true;
				//thread.Start(model);
			}
		}