This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// The check box. | |
/// </summary> | |
public class CheckBox : View | |
{ | |
/// <summary> | |
/// The checked state property. | |
/// </summary> | |
public static readonly BindableProperty CheckedProperty = | |
BindableProperty.Create(nameof(Checked), typeof (bool), typeof (CheckBox), false, BindingMode.TwoWay, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HttpTracer; | |
using System.Net.Http; | |
using Microsoft.AspNetCore.Components.Browser; | |
using Microsoft.AspNetCore.Components.Builder; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.AspNetCore.Components; | |
using System; | |
using Microsoft.AspNetCore.Blazor.Services; | |
using Microsoft.AspNetCore.Blazor.Http; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HttpTracer; | |
using System.Net.Http; | |
using Microsoft.AspNetCore.Components.Browser; | |
using Microsoft.AspNetCore.Components.Builder; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.AspNetCore.Components; | |
using System; | |
using Microsoft.AspNetCore.Blazor.Services; | |
using Microsoft.AspNetCore.Blazor.Http; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Exclude EF.Core dependencies from Xamarin.iOS linking --> | |
<linker> | |
<assembly fullname="System"> | |
<type fullname="System.ComponentModel.ReferenceConverter"> | |
<method signature="System.Void .ctor(System.Type)" /> | |
</type> | |
</assembly> | |
<assembly fullname="mscorlib"> | |
<type fullname="System.String"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
using VersionCheck.Common; | |
namespace VersionCheck | |
{ | |
public class VersionCheckHandler : DelegatingHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Http; | |
namespace VersionCheck.API.VersionCheck | |
{ | |
public interface IVersionCheckService | |
{ | |
void PerformVersionCheck(HttpRequest request); | |
string MinimumClientVersion { get; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
using VersionCheck.Common; | |
namespace VersionCheck | |
{ | |
public class VersionCheckHandler : DelegatingHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using VersionCheck.Common; | |
using Xamarin.Forms; | |
namespace VersionCheck | |
{ | |
// Learn more about making custom code visible in the Xamarin.Forms previewer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.Serialization; | |
namespace VersionCheck.Common | |
{ | |
[Serializable] | |
public class ClientVersionNotSupportedException : Exception, ISerializable | |
{ | |
public string MinimumSupportedClientVersionString { get; } | |
public string ApiVersionString { get; } |
OlderNewer