housekeeping: Update to NuGet 5.1.0 (#57)
This commit is contained in:
Родитель
8d066672cd
Коммит
bdafd4c79e
|
@ -16,4 +16,4 @@ resources:
|
|||
endpoint: reactiveui
|
||||
|
||||
jobs:
|
||||
- template: Azure/azure-pipelines-windows-only.yml@templates
|
||||
- template: Azure/azure-pipelines.yml@templates # Template reference
|
||||
|
|
Двоичные данные
image/image.png
Двоичные данные
image/image.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 26 KiB После Ширина: | Высота: | Размер: 130 B |
|
@ -20,9 +20,9 @@
|
|||
|
||||
<!-- disable sourcelink on mono, to workaround https://github.com/dotnet/sourcelink/issues/155 -->
|
||||
<EnableSourceLink Condition=" '$(OS)' != 'Windows_NT' AND '$(MSBuildRuntimeType)' != 'Core' ">false</EnableSourceLink>
|
||||
<EnableSourceControlManagerQueries>$(EnableSourceLink)</EnableSourceControlManagerQueries>
|
||||
<EnableSourceControlManagerQueries>$(EnableSourceLink)</EnableSourceControlManagerQueries>
|
||||
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<!-- Include PDB in the built .nupkg -->
|
||||
|
@ -35,10 +35,10 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="$(IsTestProject)">
|
||||
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)analyzers.tests.ruleset</CodeAnalysisRuleSet>
|
||||
<IsPackable>false</IsPackable>
|
||||
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)analyzers.tests.ruleset</CodeAnalysisRuleSet>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup Condition="$(IsTestProject)">
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
|
@ -46,18 +46,18 @@
|
|||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||
<PackageReference Include="Xunit.StaFact" Version="0.3.18" />
|
||||
<PackageReference Include="Shouldly" Version="4.0.0-beta0002" />
|
||||
<PackageReference Include="Microsoft.Reactive.Testing" Version="4.1.5" />
|
||||
<PackageReference Include="PublicApiGenerator" Version="9.1.0" />
|
||||
<PackageReference Include="Microsoft.Reactive.Testing" Version="4.1.6" />
|
||||
<PackageReference Include="PublicApiGenerator" Version="9.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup Condition="$(IsTestProject)">
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ApiGeneratorGlobalSuppressions.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(IsTestProject)' != 'true' and '$(SourceLinkEnabled)' != 'false'">
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19351-01" PrivateAssets="All" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<PropertyGroup>
|
||||
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
|
||||
</PropertyGroup>
|
||||
|
@ -65,16 +65,16 @@
|
|||
<ItemGroup>
|
||||
<None Include="$(MSBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="LICENSE" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="2.3.183" PrivateAssets="all" />
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.0.25" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="stylecop.analyzers" Version="1.1.118" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" PrivateAssets="all" />
|
||||
<PackageReference Include="Roslynator.Analyzers" Version="2.1.0" PrivateAssets="All" />
|
||||
<PackageReference Condition="'$(OS)' == 'Windows_NT'" Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.3" PrivateAssets="all" />
|
||||
<PackageReference Condition="'$(OS)' == 'Windows_NT'" Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" />
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Reactive" Version="4.1.5" />
|
||||
<PackageReference Include="System.Reactive" Version="4.1.6" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="commandlineparser" Version="2.5.0" />
|
||||
<PackageReference Include="commandlineparser" Version="2.6.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Pharmacist.Core\Pharmacist.Core.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -83,7 +83,7 @@ namespace Pharmacist.Core.NuGet
|
|||
|
||||
private static IEnumerable<string> HandleAndroid(NuGetFramework nugetFramework)
|
||||
{
|
||||
string referenceAssembliesLocation = GetReferenceLocation("/Library/Frameworks/Xamarin.Android.framework/Libraries/xbuild-frameworks");
|
||||
string referenceAssembliesLocation = GetReferenceLocation("/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/xamarin.android/xbuild-frameworks");
|
||||
|
||||
var versionText = $"v{nugetFramework.Version.Major}.{nugetFramework.Version.Minor}";
|
||||
|
||||
|
|
|
@ -52,8 +52,7 @@ namespace Pharmacist.Core.NuGet
|
|||
Providers = new List<Lazy<INuGetResourceProvider>>();
|
||||
Providers.AddRange(Repository.Provider.GetCoreV3());
|
||||
|
||||
var machineWideSettings = new XPlatMachineWideSetting();
|
||||
_globalPackagesPath = SettingsUtility.GetGlobalPackagesFolder(machineWideSettings.Settings.LastOrDefault() ?? (ISettings)NullSettings.Instance);
|
||||
_globalPackagesPath = SettingsUtility.GetGlobalPackagesFolder(new XPlatMachineWideSetting().Settings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -5,18 +5,18 @@
|
|||
<LangVersion>latest</LangVersion>
|
||||
<ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Templates\HeaderTemplate.txt" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ICSharpCode.Decompiler" Version="4.0.0.4521" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.1.0" />
|
||||
<PackageReference Include="NuGet.Protocol" Version="4.8.2" />
|
||||
<PackageReference Include="NuGet.LibraryModel" Version="4.8.2" />
|
||||
<PackageReference Include="ICSharpCode.Decompiler" Version="5.0.0.5066-preview4" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.2.1" />
|
||||
<PackageReference Include="NuGet.Protocol" Version="5.1.0" />
|
||||
<PackageReference Include="NuGet.LibraryModel" Version="5.1.0" />
|
||||
<PackageReference Include="polly" Version="7.1.0" />
|
||||
<PackageReference Include="splat" Version="8.0.1" />
|
||||
<PackageReference Include="splat" Version="8.2.4" />
|
||||
<PackageReference Include="system.collections.immutable" Version="1.5.0" />
|
||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2" />
|
||||
</ItemGroup>
|
||||
|
@ -28,4 +28,4 @@
|
|||
<Compile Include="Platforms\linux\**\*.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace Pharmacist.Core.ReferenceLocators
|
|||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
{
|
||||
return "/Library/Frameworks";
|
||||
return "/Library/Frameworks";
|
||||
}
|
||||
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,97 @@
|
|||
using global::System;
|
||||
using global::System.Reactive;
|
||||
using global::System.Reactive.Linq;
|
||||
using global::System.Reactive.Subjects;
|
||||
using global::Pharmacist.Common;
|
||||
|
||||
namespace Avalonia.Remote.Protocol
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that contains extension methods to wrap events for classes contained within the <see cref = "Avalonia.Remote.Protocol"/> namespace.
|
||||
/// </summary>
|
||||
public static class EventExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// A wrapper class which wraps all the events contained within the <see cref = "global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection"/> class.
|
||||
/// </summary>
|
||||
public static IAvaloniaRemoteTransportConnectionEvents Events(this global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection item) => new IAvaloniaRemoteTransportConnectionEvents(item);
|
||||
/// <summary>
|
||||
/// A wrapper class which wraps all the events contained within the <see cref = "global::Avalonia.Remote.Protocol.TransportConnectionWrapper"/> class.
|
||||
/// </summary>
|
||||
public static TransportConnectionWrapperEvents Events(this global::Avalonia.Remote.Protocol.TransportConnectionWrapper item) => new TransportConnectionWrapperEvents(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A class which wraps the events contained within the <see cref = "global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection"/> class as observables.
|
||||
/// </summary>
|
||||
public class IAvaloniaRemoteTransportConnectionEvents
|
||||
{
|
||||
private readonly global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection _data;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref = "global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection"/> class.
|
||||
/// </summary>
|
||||
/// <param name = "data">The class that is being wrapped.</param>
|
||||
public IAvaloniaRemoteTransportConnectionEvents(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection data)
|
||||
{
|
||||
_data = data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection.OnException"/> event triggers.
|
||||
/// </summary>
|
||||
public global::System.IObservable<(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, global::System.Exception arg2)> OnException => global::System.Reactive.Linq.Observable.FromEvent<global::System.Action<global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection, global::System.Exception>, (global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, global::System.Exception arg2)>(eventHandler =>
|
||||
{
|
||||
void Handler(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, global::System.Exception arg2) => eventHandler((arg1, arg2));
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => _data.OnException += x, x => _data.OnException -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection.OnMessage"/> event triggers.
|
||||
/// </summary>
|
||||
public global::System.IObservable<(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, object arg2)> OnMessage => global::System.Reactive.Linq.Observable.FromEvent<global::System.Action<global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection, object>, (global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, object arg2)>(eventHandler =>
|
||||
{
|
||||
void Handler(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, object arg2) => eventHandler((arg1, arg2));
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => _data.OnMessage += x, x => _data.OnMessage -= x);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A class which wraps the events contained within the <see cref = "global::Avalonia.Remote.Protocol.TransportConnectionWrapper"/> class as observables.
|
||||
/// </summary>
|
||||
public class TransportConnectionWrapperEvents
|
||||
{
|
||||
private readonly global::Avalonia.Remote.Protocol.TransportConnectionWrapper _data;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref = "global::Avalonia.Remote.Protocol.TransportConnectionWrapper"/> class.
|
||||
/// </summary>
|
||||
/// <param name = "data">The class that is being wrapped.</param>
|
||||
public TransportConnectionWrapperEvents(global::Avalonia.Remote.Protocol.TransportConnectionWrapper data)
|
||||
{
|
||||
_data = data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Avalonia.Remote.Protocol.TransportConnectionWrapper.OnException"/> event triggers.
|
||||
/// </summary>
|
||||
public global::System.IObservable<(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, global::System.Exception arg2)> OnException => global::System.Reactive.Linq.Observable.FromEvent<global::System.Action<global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection, global::System.Exception>, (global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, global::System.Exception arg2)>(eventHandler =>
|
||||
{
|
||||
void Handler(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, global::System.Exception arg2) => eventHandler((arg1, arg2));
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => _data.OnException += x, x => _data.OnException -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Avalonia.Remote.Protocol.TransportConnectionWrapper.OnMessage"/> event triggers.
|
||||
/// </summary>
|
||||
public global::System.IObservable<(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, object arg2)> OnMessage => global::System.Reactive.Linq.Observable.FromEvent<global::System.Action<global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection, object>, (global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, object arg2)>(eventHandler =>
|
||||
{
|
||||
void Handler(global::Avalonia.Remote.Protocol.IAvaloniaRemoteTransportConnection arg1, object arg2) => eventHandler((arg1, arg2));
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => _data.OnMessage += x, x => _data.OnMessage -= x);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,125 @@
|
|||
using global::System;
|
||||
using global::System.Reactive;
|
||||
using global::System.Reactive.Linq;
|
||||
using global::System.Reactive.Subjects;
|
||||
using global::Pharmacist.Common;
|
||||
|
||||
namespace Xamarin.Essentials
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that contains extension methods to wrap events contained within static classes within the <see cref = "Xamarin.Essentials"/> namespace.
|
||||
/// </summary>
|
||||
public static class Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.AccelerometerChangedEventArgs> AccelerometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.AccelerometerChangedEventArgs>, global::Xamarin.Essentials.AccelerometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.AccelerometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged += x, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ShakeDetected"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::System.EventArgs> AccelerometerShakeDetected => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler, global::System.EventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::System.EventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected += x, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Barometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BarometerChangedEventArgs> BarometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BarometerChangedEventArgs>, global::Xamarin.Essentials.BarometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BarometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Barometer.ReadingChanged += x, x => global::Xamarin.Essentials.Barometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.BatteryInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BatteryInfoChangedEventArgs> BatteryBatteryInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BatteryInfoChangedEventArgs>, global::Xamarin.Essentials.BatteryInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BatteryInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged += x, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.EnergySaverStatusChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs> BatteryEnergySaverStatusChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged += x, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Compass.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.CompassChangedEventArgs> CompassReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.CompassChangedEventArgs>, global::Xamarin.Essentials.CompassChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.CompassChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Compass.ReadingChanged += x, x => global::Xamarin.Essentials.Compass.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Connectivity.ConnectivityChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.ConnectivityChangedEventArgs> ConnectivityConnectivityChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.ConnectivityChangedEventArgs>, global::Xamarin.Essentials.ConnectivityChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.ConnectivityChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged += x, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.DisplayInfoChangedEventArgs> DeviceDisplayMainDisplayInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.DisplayInfoChangedEventArgs>, global::Xamarin.Essentials.DisplayInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.DisplayInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged += x, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Gyroscope.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.GyroscopeChangedEventArgs> GyroscopeReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.GyroscopeChangedEventArgs>, global::Xamarin.Essentials.GyroscopeChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.GyroscopeChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged += x, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Magnetometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.MagnetometerChangedEventArgs> MagnetometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.MagnetometerChangedEventArgs>, global::Xamarin.Essentials.MagnetometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.MagnetometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged += x, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.OrientationSensor.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.OrientationSensorChangedEventArgs> OrientationSensorReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.OrientationSensorChangedEventArgs>, global::Xamarin.Essentials.OrientationSensorChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.OrientationSensorChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged += x, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged -= x);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,125 @@
|
|||
using global::System;
|
||||
using global::System.Reactive;
|
||||
using global::System.Reactive.Linq;
|
||||
using global::System.Reactive.Subjects;
|
||||
using global::Pharmacist.Common;
|
||||
|
||||
namespace Xamarin.Essentials
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that contains extension methods to wrap events contained within static classes within the <see cref = "Xamarin.Essentials"/> namespace.
|
||||
/// </summary>
|
||||
public static class Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.AccelerometerChangedEventArgs> AccelerometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.AccelerometerChangedEventArgs>, global::Xamarin.Essentials.AccelerometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.AccelerometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged += x, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ShakeDetected"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::System.EventArgs> AccelerometerShakeDetected => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler, global::System.EventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::System.EventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected += x, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Barometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BarometerChangedEventArgs> BarometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BarometerChangedEventArgs>, global::Xamarin.Essentials.BarometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BarometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Barometer.ReadingChanged += x, x => global::Xamarin.Essentials.Barometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.BatteryInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BatteryInfoChangedEventArgs> BatteryBatteryInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BatteryInfoChangedEventArgs>, global::Xamarin.Essentials.BatteryInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BatteryInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged += x, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.EnergySaverStatusChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs> BatteryEnergySaverStatusChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged += x, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Compass.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.CompassChangedEventArgs> CompassReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.CompassChangedEventArgs>, global::Xamarin.Essentials.CompassChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.CompassChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Compass.ReadingChanged += x, x => global::Xamarin.Essentials.Compass.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Connectivity.ConnectivityChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.ConnectivityChangedEventArgs> ConnectivityConnectivityChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.ConnectivityChangedEventArgs>, global::Xamarin.Essentials.ConnectivityChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.ConnectivityChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged += x, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.DisplayInfoChangedEventArgs> DeviceDisplayMainDisplayInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.DisplayInfoChangedEventArgs>, global::Xamarin.Essentials.DisplayInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.DisplayInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged += x, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Gyroscope.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.GyroscopeChangedEventArgs> GyroscopeReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.GyroscopeChangedEventArgs>, global::Xamarin.Essentials.GyroscopeChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.GyroscopeChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged += x, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Magnetometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.MagnetometerChangedEventArgs> MagnetometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.MagnetometerChangedEventArgs>, global::Xamarin.Essentials.MagnetometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.MagnetometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged += x, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.OrientationSensor.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.OrientationSensorChangedEventArgs> OrientationSensorReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.OrientationSensorChangedEventArgs>, global::Xamarin.Essentials.OrientationSensorChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.OrientationSensorChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged += x, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged -= x);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,125 @@
|
|||
using global::System;
|
||||
using global::System.Reactive;
|
||||
using global::System.Reactive.Linq;
|
||||
using global::System.Reactive.Subjects;
|
||||
using global::Pharmacist.Common;
|
||||
|
||||
namespace Xamarin.Essentials
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that contains extension methods to wrap events contained within static classes within the <see cref = "Xamarin.Essentials"/> namespace.
|
||||
/// </summary>
|
||||
public static class Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.AccelerometerChangedEventArgs> AccelerometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.AccelerometerChangedEventArgs>, global::Xamarin.Essentials.AccelerometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.AccelerometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged += x, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ShakeDetected"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::System.EventArgs> AccelerometerShakeDetected => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler, global::System.EventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::System.EventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected += x, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Barometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BarometerChangedEventArgs> BarometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BarometerChangedEventArgs>, global::Xamarin.Essentials.BarometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BarometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Barometer.ReadingChanged += x, x => global::Xamarin.Essentials.Barometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.BatteryInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BatteryInfoChangedEventArgs> BatteryBatteryInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BatteryInfoChangedEventArgs>, global::Xamarin.Essentials.BatteryInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BatteryInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged += x, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.EnergySaverStatusChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs> BatteryEnergySaverStatusChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged += x, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Compass.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.CompassChangedEventArgs> CompassReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.CompassChangedEventArgs>, global::Xamarin.Essentials.CompassChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.CompassChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Compass.ReadingChanged += x, x => global::Xamarin.Essentials.Compass.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Connectivity.ConnectivityChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.ConnectivityChangedEventArgs> ConnectivityConnectivityChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.ConnectivityChangedEventArgs>, global::Xamarin.Essentials.ConnectivityChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.ConnectivityChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged += x, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.DisplayInfoChangedEventArgs> DeviceDisplayMainDisplayInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.DisplayInfoChangedEventArgs>, global::Xamarin.Essentials.DisplayInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.DisplayInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged += x, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Gyroscope.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.GyroscopeChangedEventArgs> GyroscopeReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.GyroscopeChangedEventArgs>, global::Xamarin.Essentials.GyroscopeChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.GyroscopeChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged += x, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Magnetometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.MagnetometerChangedEventArgs> MagnetometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.MagnetometerChangedEventArgs>, global::Xamarin.Essentials.MagnetometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.MagnetometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged += x, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.OrientationSensor.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.OrientationSensorChangedEventArgs> OrientationSensorReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.OrientationSensorChangedEventArgs>, global::Xamarin.Essentials.OrientationSensorChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.OrientationSensorChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged += x, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged -= x);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,125 @@
|
|||
using global::System;
|
||||
using global::System.Reactive;
|
||||
using global::System.Reactive.Linq;
|
||||
using global::System.Reactive.Subjects;
|
||||
using global::Pharmacist.Common;
|
||||
|
||||
namespace Xamarin.Essentials
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that contains extension methods to wrap events contained within static classes within the <see cref = "Xamarin.Essentials"/> namespace.
|
||||
/// </summary>
|
||||
public static class Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.AccelerometerChangedEventArgs> AccelerometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.AccelerometerChangedEventArgs>, global::Xamarin.Essentials.AccelerometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.AccelerometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged += x, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ShakeDetected"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::System.EventArgs> AccelerometerShakeDetected => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler, global::System.EventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::System.EventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected += x, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Barometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BarometerChangedEventArgs> BarometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BarometerChangedEventArgs>, global::Xamarin.Essentials.BarometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BarometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Barometer.ReadingChanged += x, x => global::Xamarin.Essentials.Barometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.BatteryInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BatteryInfoChangedEventArgs> BatteryBatteryInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BatteryInfoChangedEventArgs>, global::Xamarin.Essentials.BatteryInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BatteryInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged += x, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.EnergySaverStatusChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs> BatteryEnergySaverStatusChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged += x, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Compass.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.CompassChangedEventArgs> CompassReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.CompassChangedEventArgs>, global::Xamarin.Essentials.CompassChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.CompassChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Compass.ReadingChanged += x, x => global::Xamarin.Essentials.Compass.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Connectivity.ConnectivityChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.ConnectivityChangedEventArgs> ConnectivityConnectivityChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.ConnectivityChangedEventArgs>, global::Xamarin.Essentials.ConnectivityChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.ConnectivityChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged += x, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.DisplayInfoChangedEventArgs> DeviceDisplayMainDisplayInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.DisplayInfoChangedEventArgs>, global::Xamarin.Essentials.DisplayInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.DisplayInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged += x, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Gyroscope.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.GyroscopeChangedEventArgs> GyroscopeReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.GyroscopeChangedEventArgs>, global::Xamarin.Essentials.GyroscopeChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.GyroscopeChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged += x, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Magnetometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.MagnetometerChangedEventArgs> MagnetometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.MagnetometerChangedEventArgs>, global::Xamarin.Essentials.MagnetometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.MagnetometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged += x, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.OrientationSensor.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.OrientationSensorChangedEventArgs> OrientationSensorReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.OrientationSensorChangedEventArgs>, global::Xamarin.Essentials.OrientationSensorChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.OrientationSensorChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged += x, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged -= x);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,125 @@
|
|||
using global::System;
|
||||
using global::System.Reactive;
|
||||
using global::System.Reactive.Linq;
|
||||
using global::System.Reactive.Subjects;
|
||||
using global::Pharmacist.Common;
|
||||
|
||||
namespace Xamarin.Essentials
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that contains extension methods to wrap events contained within static classes within the <see cref = "Xamarin.Essentials"/> namespace.
|
||||
/// </summary>
|
||||
public static class Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.AccelerometerChangedEventArgs> AccelerometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.AccelerometerChangedEventArgs>, global::Xamarin.Essentials.AccelerometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.AccelerometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged += x, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ShakeDetected"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::System.EventArgs> AccelerometerShakeDetected => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler, global::System.EventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::System.EventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected += x, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Barometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BarometerChangedEventArgs> BarometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BarometerChangedEventArgs>, global::Xamarin.Essentials.BarometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BarometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Barometer.ReadingChanged += x, x => global::Xamarin.Essentials.Barometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.BatteryInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BatteryInfoChangedEventArgs> BatteryBatteryInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BatteryInfoChangedEventArgs>, global::Xamarin.Essentials.BatteryInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BatteryInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged += x, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.EnergySaverStatusChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs> BatteryEnergySaverStatusChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged += x, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Compass.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.CompassChangedEventArgs> CompassReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.CompassChangedEventArgs>, global::Xamarin.Essentials.CompassChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.CompassChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Compass.ReadingChanged += x, x => global::Xamarin.Essentials.Compass.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Connectivity.ConnectivityChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.ConnectivityChangedEventArgs> ConnectivityConnectivityChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.ConnectivityChangedEventArgs>, global::Xamarin.Essentials.ConnectivityChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.ConnectivityChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged += x, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.DisplayInfoChangedEventArgs> DeviceDisplayMainDisplayInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.DisplayInfoChangedEventArgs>, global::Xamarin.Essentials.DisplayInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.DisplayInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged += x, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Gyroscope.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.GyroscopeChangedEventArgs> GyroscopeReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.GyroscopeChangedEventArgs>, global::Xamarin.Essentials.GyroscopeChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.GyroscopeChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged += x, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Magnetometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.MagnetometerChangedEventArgs> MagnetometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.MagnetometerChangedEventArgs>, global::Xamarin.Essentials.MagnetometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.MagnetometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged += x, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.OrientationSensor.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.OrientationSensorChangedEventArgs> OrientationSensorReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.OrientationSensorChangedEventArgs>, global::Xamarin.Essentials.OrientationSensorChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.OrientationSensorChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged += x, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged -= x);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,125 @@
|
|||
using global::System;
|
||||
using global::System.Reactive;
|
||||
using global::System.Reactive.Linq;
|
||||
using global::System.Reactive.Subjects;
|
||||
using global::Pharmacist.Common;
|
||||
|
||||
namespace Xamarin.Essentials
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that contains extension methods to wrap events contained within static classes within the <see cref = "Xamarin.Essentials"/> namespace.
|
||||
/// </summary>
|
||||
public static class Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.AccelerometerChangedEventArgs> AccelerometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.AccelerometerChangedEventArgs>, global::Xamarin.Essentials.AccelerometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.AccelerometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged += x, x => global::Xamarin.Essentials.Accelerometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Accelerometer.ShakeDetected"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::System.EventArgs> AccelerometerShakeDetected => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler, global::System.EventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::System.EventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected += x, x => global::Xamarin.Essentials.Accelerometer.ShakeDetected -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Barometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BarometerChangedEventArgs> BarometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BarometerChangedEventArgs>, global::Xamarin.Essentials.BarometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BarometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Barometer.ReadingChanged += x, x => global::Xamarin.Essentials.Barometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.BatteryInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.BatteryInfoChangedEventArgs> BatteryBatteryInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.BatteryInfoChangedEventArgs>, global::Xamarin.Essentials.BatteryInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.BatteryInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged += x, x => global::Xamarin.Essentials.Battery.BatteryInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Battery.EnergySaverStatusChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs> BatteryEnergySaverStatusChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.EnergySaverStatusChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged += x, x => global::Xamarin.Essentials.Battery.EnergySaverStatusChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Compass.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.CompassChangedEventArgs> CompassReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.CompassChangedEventArgs>, global::Xamarin.Essentials.CompassChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.CompassChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Compass.ReadingChanged += x, x => global::Xamarin.Essentials.Compass.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Connectivity.ConnectivityChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.ConnectivityChangedEventArgs> ConnectivityConnectivityChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.ConnectivityChangedEventArgs>, global::Xamarin.Essentials.ConnectivityChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.ConnectivityChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged += x, x => global::Xamarin.Essentials.Connectivity.ConnectivityChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.DisplayInfoChangedEventArgs> DeviceDisplayMainDisplayInfoChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.DisplayInfoChangedEventArgs>, global::Xamarin.Essentials.DisplayInfoChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.DisplayInfoChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged += x, x => global::Xamarin.Essentials.DeviceDisplay.MainDisplayInfoChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Gyroscope.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.GyroscopeChangedEventArgs> GyroscopeReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.GyroscopeChangedEventArgs>, global::Xamarin.Essentials.GyroscopeChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.GyroscopeChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged += x, x => global::Xamarin.Essentials.Gyroscope.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.Magnetometer.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.MagnetometerChangedEventArgs> MagnetometerReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.MagnetometerChangedEventArgs>, global::Xamarin.Essentials.MagnetometerChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.MagnetometerChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged += x, x => global::Xamarin.Essentials.Magnetometer.ReadingChanged -= x);
|
||||
/// <summary>
|
||||
/// Gets an observable which signals when the <see cref = "global::Xamarin.Essentials.OrientationSensor.ReadingChanged"/> event triggers.
|
||||
/// </summary>
|
||||
public static global::System.IObservable<global::Xamarin.Essentials.OrientationSensorChangedEventArgs> OrientationSensorReadingChanged => global::System.Reactive.Linq.Observable.FromEvent<global::System.EventHandler<global::Xamarin.Essentials.OrientationSensorChangedEventArgs>, global::Xamarin.Essentials.OrientationSensorChangedEventArgs>(eventHandler =>
|
||||
{
|
||||
void Handler(object sender, global::Xamarin.Essentials.OrientationSensorChangedEventArgs e) => eventHandler(e);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged += x, x => global::Xamarin.Essentials.OrientationSensor.ReadingChanged -= x);
|
||||
}
|
||||
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -29,7 +29,7 @@ namespace Pharmacist.Tests
|
|||
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
{
|
||||
Assert.Contains("/Library/Frameworks/Libraries/mono", location);
|
||||
Assert.Contains("/Library/Frameworks", location);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
{
|
||||
"sdk": {
|
||||
"version": "3.0.100-preview"
|
||||
},
|
||||
"msbuild-sdks": {
|
||||
"MSBuild.Sdk.Extras": "1.6.68"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0",
|
||||
"version": "1.1",
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/master$", // we release out of master
|
||||
"^refs/heads/develop$", // we release out of develop
|
||||
|
|
Загрузка…
Ссылка в новой задаче