示例#1
0
 public OpenHimRegistrationService(IOpenHimCoreClient openHimCoreClient)
 {
     _openHimCoreClient = openHimCoreClient;
 }
 /// <summary>
 /// Service that POSTs a heartbeat request to the OpenHim core system.
 /// Based on:
 /// https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-5.0&tabs=visual-studio#timed-background-tasks
 /// </summary>
 /// <param name="openHimCoreClient"></param>
 /// <param name="mediatorConfigOptions"></param>
 public OpenHimHeartbeatService(IOpenHimCoreClient openHimCoreClient, IOptions <MediatorConfig> mediatorConfigOptions)
 {
     _openHimCoreClient        = openHimCoreClient;
     _heartbeatIntervalSeconds = mediatorConfigOptions.Value.MediatorCore.HeartbeatInterval;
 }