BabelService

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

Base class for all Babel services

public abstract class BabelService : IDisposable

Inheritance

objectBabelService

Derived

BabelLicensing, BabelReporting

Implements

IDisposable

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

BabelService()

BabelService instance constructor.

protected BabelService()

Fields

_configuration

The configuration.

protected BabelServiceConfiguration _configuration

Field Value

BabelServiceConfiguration

Properties

Configuration

Gets the configuration.

public virtual BabelServiceConfiguration Configuration { get; }

Property Value

BabelServiceConfiguration

Methods

CreateClientId()

Creates the ClientId string.

protected virtual string CreateClientId()

Returns

Name
Description

The ClientId string.

CreateDefaultConfiguration()

Creates default service configuration

protected abstract BabelServiceConfiguration CreateDefaultConfiguration()

Returns

Dispose(bool)

Dispose object

protected virtual void Dispose(bool disposing)

Parameters

Name
Description

disposing bool

Is disposing.

Dispose()

Dispose this object

public void Dispose()

EnsureConfigured()

Ensure service configuration

protected void EnsureConfigured()

~BabelService()

BabelService finalizer.

protected ~BabelService()

GetChannel(string)

Creates the GRPC channel

protected virtual CallInvoker GetChannel(string userKey)

Parameters

Name
Description

userKey string

Returns

GetChannelAsync(string)

Creates the GRPC channel

protected virtual Task<CallInvoker> GetChannelAsync(string userKey)

Parameters

Name
Description

userKey string

Returns

Name
Description

Task<CallInvoker>

The GRPC channel

OnConfiguring(BabelServiceConfiguration)

On service configuration

protected virtual void OnConfiguring(BabelServiceConfiguration config)

Parameters

Name
Description

The service configuration

ShutdownAsync()

Close all channels

public virtual Task ShutdownAsync()

Returns

Name
Description

Last updated