private void SendNotification(string lczItemName) { LocalizableString template = new LocalizableString( _userConnection.Workspace.ResourceStorage, "MLDataLoader", lczItemName); string message = string.Format(template, _config.MaxRecordsCount); _modelEventsNotifier.NotifyModelEventRecipients(message); }
private void NotifyUsers(TrainSessionState newSessionState, Guid modelId) { EntitySchema schema = _userConnection.EntitySchemaManager.GetInstanceByName("MLModel"); Entity model = schema.CreateEntity(_userConnection); if (!model.FetchFromDB("Id", modelId, new[] { schema.PrimaryDisplayColumn.Name })) { return; } LocalizableString template = new LocalizableString(_userConnection.Workspace.ResourceStorage, "MLModelTrainer", "LocalizableStrings.ModelStateChangedMessage.Value"); string message = string.Format(template, model.PrimaryDisplayColumnValue, newSessionState); _modelEventsNotifier.NotifyModelEventRecipients(message); }