Skip to content

Commit

Permalink
fix: Remove PORTABLE definition Blazor Taskpool (#561)
Browse files Browse the repository at this point in the history
removed netstandard platform
  • Loading branch information
RLittlesII authored Feb 5, 2020
1 parent 5490c28 commit 98b2675
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 77 deletions.
2 changes: 1 addition & 1 deletion src/Akavache.Core/Akavache.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

<Target Name="_RemoveNonExistingResgenFile" BeforeTargets="CoreCompile" Condition="'$(_SdkSetAndroidResgenFile)' == 'true' And '$(AndroidResgenFile)' != '' And !Exists('$(AndroidResgenFile)')">
<ItemGroup>
<Compile Remove="$(AndroidResgenFile)"/>
<Compile Remove="$(AndroidResgenFile)" />
</ItemGroup>
</Target>

Expand Down
22 changes: 0 additions & 22 deletions src/Akavache.Core/BlobCache/BlobCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,27 +157,6 @@ public static ISecureBlobCache Secure
/// </remarks>
public static DateTimeKind? ForcedDateTimeKind { get; set; }

#if PORTABLE
/// <summary>
/// Gets or sets the Scheduler used for task pools.
/// </summary>
/// <exception cref="Exception">If the task pool scheduler can't be found.</exception>
[SuppressMessage("Design", "CA1065: Properties should not fire exceptions.", Justification = "Extreme non standard case.")]
public static IScheduler TaskpoolScheduler
{
get
{
var ret = _taskPoolOverride ?? Locator.Current.GetService<IScheduler>("Taskpool");
if (ret == null)
{
throw new Exception("Can't find a TaskPoolScheduler. You probably accidentally linked to the PCL Akavache in your app.");
}

return ret;
}
set => _taskPoolOverride = value;
}
#else
/// <summary>
/// Gets or sets the Scheduler used for task pools.
/// </summary>
Expand All @@ -186,7 +165,6 @@ public static IScheduler TaskpoolScheduler
get => _taskPoolOverride ?? Locator.Current.GetService<IScheduler>("Taskpool") ?? System.Reactive.Concurrency.TaskPoolScheduler.Default;
set => _taskPoolOverride = value;
}
#endif

/// <summary>
/// Makes sure that the system has been initialized.
Expand Down
54 changes: 0 additions & 54 deletions src/Akavache.Core/Platforms/netstandard2.0/Utility.cs

This file was deleted.

0 comments on commit 98b2675

Please sign in to comment.