Si solo tienes un Casino, por ejemplo PokerStars, los paths de los otros dos deberían estar vacíos, lo que lleva al siguiente error
System.ArgumentException
HResult=0x80070057
Message=The path is empty. (Parameter 'path')
Source=System.Private.CoreLib
StackTrace:
at System.IO.Path.GetFullPath(String path)
at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, Boolean isNormalized, EnumerationOptions options)
at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String directory, String expression, EnumerationOptions options)
at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
at System.IO.Directory.GetDirectories(String path)
at KrakenEasy.Servicios.ServiciosFicheros.Recorrer_Directorios_Casino() in C:\Users\Mif\Documents\Projects\KrakenEasy\KrakenEasy\Servicios\ServiciosFicheros.cs:line 111
at KrakenEasy.Servicios.ServiciosFicheros.main() in C:\Users\Mif\Documents\Projects\KrakenEasy\KrakenEasy\Servicios\ServiciosFicheros.cs:line 26
at KrakenEasy.Servicios.main_Servicios.<ExecuteAsync>d__3.MoveNext() in C:\Users\Mif\Documents\Projects\KrakenEasy\KrakenEasy\Servicios\main_Servicios.cs:line 38
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__9.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
at KrakenEasy.Servicios.Servicios.main() in C:\Users\Mif\Documents\Projects\KrakenEasy\KrakenEasy\Servicios\Servicios.cs:line 12
at KrakenEasy.MainWindow.Iniciar_Servicio() in C:\Users\Mif\Documents\Projects\KrakenEasy\KrakenEasy\MainWindow.xaml.cs:line 94
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
This exception was originally thrown at this call stack:
[External Code]
KrakenEasy.Servicios.ServiciosFicheros.Recorrer_Directorios_Casino() in ServiciosFicheros.cs
KrakenEasy.Servicios.ServiciosFicheros.main() in ServiciosFicheros.cs
KrakenEasy.Servicios.main_Servicios.ExecuteAsync(System.Threading.CancellationToken) in main_Servicios.cs
[External Code]
KrakenEasy.Servicios.Servicios.main() in Servicios.cs
KrakenEasy.MainWindow.Iniciar_Servicio() in MainWindow.xaml.cs
[External Code]
Si solo tienes un Casino, por ejemplo PokerStars, los paths de los otros dos deberían estar vacíos, lo que lleva al siguiente error