21 строка
853 B
C#
21 строка
853 B
C#
// ------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
|
|
// ------------------------------------------------------------
|
|
|
|
using System.Fabric;
|
|
using FabricObserver;
|
|
using FabricObserver.Observers;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
[assembly: FabricObserverStartup(typeof(SampleNewObserverStartup))]
|
|
namespace FabricObserver.Observers
|
|
{
|
|
public class SampleNewObserverStartup : IFabricObserverStartup
|
|
{
|
|
public void ConfigureServices(IServiceCollection services, FabricClient fabricClient, StatelessServiceContext context)
|
|
{
|
|
services.AddScoped(typeof(ObserverBase), s => new SampleNewObserver(fabricClient, context));
|
|
}
|
|
}
|
|
} |