iikoFront Api V8 Code Reference
iikoFront Api V8 Code Reference
Resto.Front.Api.Extensions
ServiceProviderExtensions Class
ServiceProviderExtensions Methods
GetService(T) Method

# ServiceProviderExtensions GetService T Method

Gets the service object of the specified type.

Namespace: Resto.Front.Api.Extensions
Assembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    public static T GetService<T>(
    	this IServiceProvider serviceProvider
    )

#### Parameters

serviceProvider
  Type: System
  IServiceProvider

#### Type Parameters

T

#### Return Value

Type: T

#### Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IServiceProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

#### Reference

ServiceProviderExtensions Class
Resto.Front.Api.Extensions Namespace