/// <summary> /// Sets the given provider is the default. /// </summary> public static void SetupAsDefault() { RestProviderLoader.SetProviderType(typeof(MonoProvider)); }
/// <summary> /// Sets the rest of the provider to be used in the application. /// </summary> /// <exception cref="ArgumentNullException"> /// Type is null. /// </exception> /// <exception cref="InvalidOperationException"> /// Provider not suitable. /// </exception> /// <remarks> /// Since dotnet just doesn't load all the assemblies /// that are inserted in the project if they are not used, /// I have to use this... /// </remarks> public static void SetRestProvider(Type type) { RestProviderLoader.SetProviderType(type); }