diff --git a/src/activities/Elsa.Activities.Rpa.Web/Services/ChromeDriverInstaller.cs b/src/activities/Elsa.Activities.Rpa.Web/Services/ChromeDriverInstaller.cs index 24687aaa1..32e4e0be9 100644 --- a/src/activities/Elsa.Activities.Rpa.Web/Services/ChromeDriverInstaller.cs +++ b/src/activities/Elsa.Activities.Rpa.Web/Services/ChromeDriverInstaller.cs @@ -70,7 +70,7 @@ namespace Elsa.Activities.Rpa.Web.Services throw new PlatformNotSupportedException("Your operating system is not supported."); } - string targetPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); + string targetPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!; targetPath = Path.Combine(targetPath, driverName); if (!forceDownload && File.Exists(targetPath)) { @@ -84,7 +84,7 @@ namespace Elsa.Activities.Rpa.Web.Services RedirectStandardOutput = true, RedirectStandardError = true, } - ); + )!; string existingChromeDriverVersion = await process.StandardOutput.ReadToEndAsync(); string error = await process.StandardError.ReadToEndAsync(); process.WaitForExit(); @@ -118,7 +118,7 @@ namespace Elsa.Activities.Rpa.Web.Services using (var zipArchive = new ZipArchive(zipFileStream, ZipArchiveMode.Read)) using (var chromeDriverWriter = new FileStream(targetPath, FileMode.Create)) { - var entry = zipArchive.GetEntry(driverName); + var entry = zipArchive.GetEntry(driverName)!; using Stream chromeDriverStream = entry.Open(); await chromeDriverStream.CopyToAsync(chromeDriverWriter); } @@ -136,7 +136,7 @@ namespace Elsa.Activities.Rpa.Web.Services RedirectStandardOutput = true, RedirectStandardError = true, } - ); + )!; string error = await process.StandardError.ReadToEndAsync(); process.WaitForExit(); process.Kill(); @@ -152,7 +152,7 @@ namespace Elsa.Activities.Rpa.Web.Services { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - string chromePath = (string)Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", null, null); + var chromePath = (string?)Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", null, null); if (chromePath == null) { throw new Exception("Google Chrome not found in registry"); @@ -175,7 +175,7 @@ namespace Elsa.Activities.Rpa.Web.Services RedirectStandardOutput = true, RedirectStandardError = true, } - ); + )!; string output = await process.StandardOutput.ReadToEndAsync(); string error = await process.StandardError.ReadToEndAsync(); process.WaitForExit(); @@ -207,7 +207,7 @@ namespace Elsa.Activities.Rpa.Web.Services RedirectStandardOutput = true, RedirectStandardError = true, } - ); + )!; string output = await process.StandardOutput.ReadToEndAsync(); string error = await process.StandardError.ReadToEndAsync(); process.WaitForExit(); diff --git a/src/core/Elsa.Abstractions/Services/Models/ActivityBlueprint.cs b/src/core/Elsa.Abstractions/Services/Models/ActivityBlueprint.cs index 1195dadbc..b747bac8c 100644 --- a/src/core/Elsa.Abstractions/Services/Models/ActivityBlueprint.cs +++ b/src/core/Elsa.Abstractions/Services/Models/ActivityBlueprint.cs @@ -45,7 +45,6 @@ namespace Elsa.Services.Models public bool SaveWorkflowContext { get; set; } public IDictionary PropertyStorageProviders { get; set; } = new Dictionary(); public string? Source { get; set; } - public string Key { get; set; } public override string ToString() => Type; } } \ No newline at end of file diff --git a/src/samples/persistence/Elsa.Samples.Persistence.YesSql/Elsa.Samples.Persistence.YesSql.csproj b/src/samples/persistence/Elsa.Samples.Persistence.YesSql/Elsa.Samples.Persistence.YesSql.csproj index 301e79743..71b66a2cb 100644 --- a/src/samples/persistence/Elsa.Samples.Persistence.YesSql/Elsa.Samples.Persistence.YesSql.csproj +++ b/src/samples/persistence/Elsa.Samples.Persistence.YesSql/Elsa.Samples.Persistence.YesSql.csproj @@ -7,8 +7,12 @@ - - + + + + + + diff --git a/src/samples/worker/Elsa.Samples.WatchDirectoryWorker/Elsa.Samples.WatchDirectoryWorker.csproj b/src/samples/worker/Elsa.Samples.WatchDirectoryWorker/Elsa.Samples.WatchDirectoryWorker.csproj index f1891d124..0111f1460 100644 --- a/src/samples/worker/Elsa.Samples.WatchDirectoryWorker/Elsa.Samples.WatchDirectoryWorker.csproj +++ b/src/samples/worker/Elsa.Samples.WatchDirectoryWorker/Elsa.Samples.WatchDirectoryWorker.csproj @@ -1,39 +1,40 @@  - - Exe - net5.0 - + + Exe + net5.0 + - - - + + + - - - PreserveNewest - - + + + PreserveNewest + + - - - + + + + - - - - - - + + + + + + - - - + + + - - - PreserveNewest - - + + + PreserveNewest + +