public SchemaJobWorkerBackgroundService(SchemaJobWorker schemaJobWorker, SqlServerDataStoreConfiguration sqlServerDataStoreConfiguration, SchemaInformation schemaInformation)
        {
            EnsureArg.IsNotNull(schemaJobWorker, nameof(schemaJobWorker));
            EnsureArg.IsNotNull(sqlServerDataStoreConfiguration, nameof(sqlServerDataStoreConfiguration));
            EnsureArg.IsNotNull(schemaInformation, nameof(schemaInformation));

            _schemaJobWorker = schemaJobWorker;
            _sqlServerDataStoreConfiguration = sqlServerDataStoreConfiguration;
            _schemaInformation = schemaInformation;
            _instanceName      = Guid.NewGuid() + "-" + Process.GetCurrentProcess().Id.ToString();
        }
        public SchemaJobWorkerBackgroundService(SchemaJobWorker schemaJobWorker, SqlServerDataStoreConfiguration sqlServerDataStoreConfiguration, SchemaInformation schemaInformation)
        {
            EnsureArg.IsNotNull(schemaJobWorker, nameof(schemaJobWorker));
            EnsureArg.IsNotNull(sqlServerDataStoreConfiguration, nameof(sqlServerDataStoreConfiguration));
            EnsureArg.IsNotNull(schemaInformation, nameof(schemaInformation));

            _schemaJobWorker = schemaJobWorker;
            _sqlServerDataStoreConfiguration = sqlServerDataStoreConfiguration;
            _schemaInformation = schemaInformation;
#if NET5_0_OR_GREATER
            _instanceName = Guid.NewGuid() + "-" + Environment.ProcessId;
#else
            _instanceName = Guid.NewGuid() + "-" + System.Diagnostics.Process.GetCurrentProcess().Id;
#endif
        }