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.Mvc.Rendering; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace JetStreamCore.Web.Pages | |
{ | |
public static class SelectListItemExtensions | |
{ |
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
public class CustomAuthenticationProvidersInitializer : AuthenticationProvidersInitializer | |
{ | |
public override Dictionary<string, Action<IAppBuilder, string, AuthenticationProviderElement>> GetAdditionalIdentityProviders() | |
{ | |
var providers = base.GetAdditionalIdentityProviders(); | |
// 'CustomSTS' is the name of the external authentication provider as configured in the Advanced settings | |
providers.Add("CustomSTS", (IAppBuilder app, string signInAsType, AuthenticationProviderElement providerConfig) => | |
{ | |
// You can add any parameter in the configuration. We use this as an example. |
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
{ | |
"results": [ | |
{ | |
"common.locale": "en_US", | |
"common.client_id": 1073741832, | |
"common.sd_card_encrypted": false, | |
"user.last_admin_portal_login_time": "1970-01-01T00:00:00.000Z", | |
"ios.osUpdateStatus": "Unsupported", | |
"ios.Supervised": false, | |
"common.device_space_name": "Global", |
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
put _template/default | |
{ | |
"template": "*", | |
"settings": { | |
"index": { | |
"number_of_replicas": "0" | |
} | |
} | |
} |
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.Collections; | |
using System.Reflection; | |
using Xamarin.Forms; | |
namespace JetStreamXamarin.Controls | |
{ | |
/// <summary> | |
/// Source from: | |
/// https://oceanware.wordpress.com/2016/06/13/xamarin-forms-bindable-picker/ |