ApiServices Class

Definition

The ApiServices class provides commonly used context information which can be used within ApiController and IScheduledJob instances. For ApiController instances it is injected by the Dependency Injection engine, either using property injection or constructor injection. For IScheduledJob instances it is injected before the job is executed.

public class ApiServices : IDisposable
type ApiServices = class
    interface IDisposable
Public Class ApiServices
Implements IDisposable
Inheritance
ApiServices
Implements

Constructors

ApiServices(HttpConfiguration)

Initializes a new instance of the ApiServices class given a config.

Properties

Config

Gets or sets the System.Web.Http.HttpConfiguration for this ApiServices instance.

Log

Gets or sets a System.Web.Http.Tracing.ITraceWriter instance that logs information to the logging system. Log messages can be annotated with a System.Web.Http.Tracing.TraceLevel indicating the severity and a "Category" indicating the origin (i.e. the "source"). It is possible to filter which level and category or categories should be logged using the ConfigOptions when initializing the service.

Properties

Gets a set of properties for this ApiServices.

Push

Gets or sets a PushClient which can be used to send push notifications to client applications that have registered for push notifications using Azure Notification Hub.

Settings

Gets or sets the ServiceSettingsDictionary for this service. The ServiceSettingsDictionary provide information about which connection strings and application settings apply to the service.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Releases the unmanaged resources used by the ApiServices class and optionally releases the managed resources.

Applies to