//
// ServiceCollectionExtensions.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Comms.Core.Extensions;
using NosSmooth.Comms.Local.MessageResponders;
using NosSmooth.Core.Contracts;
using NosSmooth.Injector;
using NosSmooth.PacketSerializer.Extensions;
namespace NosSmooth.Comms.Local.Extensions;
///
/// Extension methods for .
///
public static class ServiceCollectionExtensions
{
///
/// Add .
///
/// The service ocllection.
/// The same service collection.
public static IServiceCollection AddLocalComms(this IServiceCollection serviceCollection)
{
return serviceCollection
.AddPacketSerialization()
.AddSingleton()
.AddMultiClientHandling()
.AddMessageResponder()
.AddMessageResponder()
.AddSingleton()
.AddSingleton();
}
}