Workplace in database?

StatusIDPriorityType
Closed39458MajorQuestion
ProfileReply
PhionaClient

How do you store workplace models in the database?
also how do you setup a custom
Service to detect new objects and generate new messages for message queue

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello!

I apologize for the delayed response.

This is the answer to your first question:
We only store workplace models as xml files.
Xafari currently only uses one file storage of workspaces (FileWorkplaceStorage).
But you can implement your own repository, which will somehow store the workstation model in the database.
To do this, you need:
1. create your new storage and inherit it from the IWorkplaceStorage interface.
2. initialize WorkplaceStorage for the WorkplaceManager, for this you need to subscribe to the CreateCustomWorkplaceStorage event (after the application completes the installation), and in the event handler, initialize Storage with your storage.
For example:

		void application_SetupComplete(object sender, EventArgs e)
		{
			if (WorkplaceManager.Instance != null)
			{				
				WorkplaceManager.Instance.CreateCustomWorkplaceStorage+= WorkplaceManager_CreateCustomWorkplaceStorage				
			}
		}
		private void WorkplaceManager_CreateCustomWorkplaceStorage(object sender, CustomWorkplaceStorageEventArgs e)
		{
			e.Storage = new CustomStorage();
		}

I did not understand the next questions:
Do you want to setup a custom WorkPlace or message queue Service?

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

MariyaVoytovichAgent

Xafari Client Services is dedicated for helping Xafari customers only.
If you have purchased Xafari subscription please identify yourself.
You can buy Xafari subscription at the page http://galaktika-soft.com/xafari/buy
If you have questions about purchasing please contact us via info@galaktika-soft.com.

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

× This ticket is closed.

Write US