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 static class SliceExtensions | |
{ | |
public static Slice<T> ToSlice<T>(this T[] array) | |
{ | |
return new Slice<T>(array); | |
} | |
public static Slice<T> ToSlice<T>(this T[] array, int offset, int length) | |
{ | |
return new Slice<T>(array, offset, length); |
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 static class LexwarePasswordEncryption | |
{ | |
public static string Encrypt(string password, string key) | |
{ | |
return PerformCrypt(password, true, key); | |
} | |
public static string Decrypt(string encryptedPassword, string key) | |
{ | |
return PerformCrypt(encryptedPassword, false, key); |
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 static class RestClientExecuteWithCallback | |
{ | |
public static Task ExecuteWithCallbacks<T>(this IRestClient client, IRestRequest request, Action<T> success, Action<Exception, string> failure) | |
{ | |
return ExecuteWithCallbacks(client, request, success, failure, null); | |
} | |
public static Task ExecuteWithCallbacks<T>(this IRestClient client, IRestRequest request, Action<T> success, Action<Exception, string> failure, Action<IRestResponse, string> requestFailure) | |
{ | |
if (success == null) |
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"?> | |
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> | |
<TypePattern DisplayName="StyleCop Pattern"> | |
<Entry DisplayName="Constant Fields"> | |
<Entry.Match> | |
<And> | |
<Kind Is="Constant" /> | |
<Kind Is="Field" /> | |
</And> | |
</Entry.Match> |
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.Net.Http; | |
namespace RestSharp.Portable.HttpClientImpl | |
{ | |
/// <summary> | |
/// Creates a HTTP message handler with an active "AllowAutoRedirect". | |
/// </summary> | |
public class FollowRedirectHttpClientFactory : DefaultHttpClientFactory | |
{ |
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 Newtonsoft.Json; | |
using RestSharp.Portable; | |
using RestSharp.Portable.Authenticators.OAuth2; | |
using RestSharp.Portable.Authenticators.OAuth2.Configuration; | |
using RestSharp.Portable.Authenticators.OAuth2.Infrastructure; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
NewerOlder