internal FunctionsController( CloudStorageAccount account, CloudBlobClient blobClient, IFunctionInstanceLookup functionInstanceLookup, IFunctionLookup functionLookup, IFunctionIndexReader functionIndexReader, IHeartbeatValidityMonitor heartbeatMonitor, IAborter aborter, IRecentInvocationIndexReader recentInvocationsReader, IRecentInvocationIndexByFunctionReader recentInvocationsByFunctionReader, IRecentInvocationIndexByJobRunReader recentInvocationsByJobRunReader, IRecentInvocationIndexByParentReader recentInvocationsByParentReader, IFunctionStatisticsReader statisticsReader) { _account = account; _blobClient = blobClient; _functionInstanceLookup = functionInstanceLookup; _functionLookup = functionLookup; _functionIndexReader = functionIndexReader; _heartbeatMonitor = heartbeatMonitor; _aborter = aborter; _recentInvocationsReader = recentInvocationsReader; _recentInvocationsByFunctionReader = recentInvocationsByFunctionReader; _recentInvocationsByJobRunReader = recentInvocationsByJobRunReader; _recentInvocationsByParentReader = recentInvocationsByParentReader; _statisticsReader = statisticsReader; }
internal FunctionsController( CloudStorageAccount account, CloudBlobClient blobClient, IFunctionInstanceLookup functionInstanceLookup, IFunctionLookup functionLookup, IFunctionIndexReader functionIndexReader, IHeartbeatValidityMonitor heartbeatMonitor, IAborter aborter, IRecentInvocationIndexReader recentInvocationsReader, IRecentInvocationIndexByFunctionReader recentInvocationsByFunctionReader, IRecentInvocationIndexByJobRunReader recentInvocationsByJobRunReader, IRecentInvocationIndexByParentReader recentInvocationsByParentReader, IFunctionStatisticsReader statisticsReader, ILogReader reader) { _account = account; _blobClient = blobClient; _functionInstanceLookup = functionInstanceLookup; _functionLookup = functionLookup; _functionIndexReader = functionIndexReader; _heartbeatMonitor = heartbeatMonitor; _aborter = aborter; _recentInvocationsReader = recentInvocationsReader; _recentInvocationsByFunctionReader = recentInvocationsByFunctionReader; _recentInvocationsByJobRunReader = recentInvocationsByJobRunReader; _recentInvocationsByParentReader = recentInvocationsByParentReader; _statisticsReader = statisticsReader; _reader = reader; }
private static bool?HostHasHeartbeat(IHeartbeatValidityMonitor heartbeatMonitor, int?expirationInSeconds, string containerName, string directoryName) { if (!expirationInSeconds.HasValue) { return(null); } return(heartbeatMonitor.IsSharedHeartbeatValid(containerName, directoryName, expirationInSeconds.Value)); }
internal FunctionController( CloudStorageAccount account, IFunctionLookup functionLookup, IFunctionInstanceLookup functionInstanceLookup, IHeartbeatValidityMonitor heartbeatMonitor, IInvoker invoker) { _account = account; _functionLookup = functionLookup; _functionInstanceLookup = functionInstanceLookup; _heartbeatMonitor = heartbeatMonitor; _invoker = invoker; }
internal static bool?HostHasHeartbeat(IHeartbeatValidityMonitor heartbeatMonitor, FunctionSnapshot snapshot) { return(HostHasHeartbeat(heartbeatMonitor, snapshot.HeartbeatExpirationInSeconds, snapshot.HeartbeatSharedContainerName, snapshot.HeartbeatSharedDirectoryName)); }
private static bool? HostHasHeartbeat(IHeartbeatValidityMonitor heartbeatMonitor, int? expirationInSeconds, string containerName, string directoryName) { if (!expirationInSeconds.HasValue) { return null; } return heartbeatMonitor.IsSharedHeartbeatValid(containerName, directoryName, expirationInSeconds.Value); }
internal static bool? HostHasHeartbeat(IHeartbeatValidityMonitor heartbeatMonitor, FunctionSnapshot snapshot) { return HostHasHeartbeat(heartbeatMonitor, snapshot.HeartbeatExpirationInSeconds, snapshot.HeartbeatSharedContainerName, snapshot.HeartbeatSharedDirectoryName); }