ServiceToController 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package ServiceToController --version 1.0.3
                    
NuGet\Install-Package ServiceToController -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ServiceToController" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ServiceToController" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="ServiceToController" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ServiceToController --version 1.0.3
                    
#r "nuget: ServiceToController, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ServiceToController&version=1.0.3
                    
Install ServiceToController as a Cake Addin
#tool nuget:?package=ServiceToController&version=1.0.3
                    
Install ServiceToController as a Cake Tool

Install

Install-Package ServiceToController
# or
dotnet add package ServiceToController

Use

using ServiceToController;
...
...
...

public class Startup
{
...
...
    public void ConfigureServices(IServiceCollection services)
    {
        ...
        ...
        var builder = services.AddControllersWithViews().AddControllersAsServices();
        builder.AddCastedService<MyService>();
    }
...
...
}


public class MyService
{
    public Task<MyObject> GetAll(MyObject obj)
    {
        return Task.FromResult(obj);
    }
}

public class MyObject
{
    public string Name { get; set; }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.22 1,447 11/6/2020
1.0.21 439 11/2/2020
1.0.20 439 11/2/2020
1.0.19 459 11/2/2020
1.0.18 451 11/2/2020
1.0.17 463 11/2/2020
1.0.16 417 11/2/2020
1.0.15 419 11/1/2020
1.0.14 440 11/1/2020
1.0.13 470 11/1/2020
1.0.12 501 11/1/2020
1.0.11 505 11/1/2020
1.0.10 481 11/1/2020
1.0.9 445 10/31/2020
1.0.8 409 10/31/2020
1.0.7 407 10/31/2020
1.0.6 418 10/30/2020
1.0.4 431 10/30/2020
1.0.3 432 10/30/2020