sharee.bike-App/SharedBusinessLogic/Services/IServicesContainer.cs

15 lines
372 B
C#
Raw Normal View History

2021-06-26 20:57:55 +02:00
using System.Collections.Generic;
2024-04-09 12:53:23 +02:00
namespace ShareeBike.Services
2021-06-26 20:57:55 +02:00
{
2022-09-06 16:08:19 +02:00
public interface IServicesContainer<T> : IEnumerable<T>
{
/// <summary> Get the active service.</summary>
T Active { get; }
2021-06-26 20:57:55 +02:00
2022-09-06 16:08:19 +02:00
/// <summary> Sets service as active service by name. </summary>
/// <param name="active">Name of the new service obecs.</param>
void SetActive(string active);
}
2021-06-26 20:57:55 +02:00
}