🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

routing.bing

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

routing.bing

0.1.0-alpha.4
unpublished
NuGet
Maintainers
0
Source

Bing Routing

This allows the simple calling of Bing routing APIs. The supported Bing routing endpoints are:

  • Routes

Configuration

In the startup ConfigureServices method, add the configuration for the Bing service:

using Routing.DependencyInjection;
.
.
.
public void ConfigureServices(IServiceCollection services)
{
    .
    .
    .
    services
        .AddBingRouting(
            options => options.UseKey(your_bing_api_key_here),
            client => client.Timeout = new TimeSpan(0, 2, 0))
        .AddCustomMesssageHandler();
    .
    .
    .
}

Sample Usage

By calling AddBingRouting, the IBingRouting interface has been added to the IOC container. Just request it as a DI item:

public MyService(IBingRouting routing)
{
    ...
}

Now simply call the routing methods in the interface.

Keywords

routing

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts