Microsoft.Azure.WebJobs.Script.ScriptHostManager.CanInvoke C# (CSharp) Method

CanInvoke() public method

Returns a value indicating whether the host can accept function invoke requests.
The host doesn't have to be fully started for it to allow direct function invocations to be processed.
public CanInvoke ( ) : bool
return bool
        public bool CanInvoke()
        {
            return State == ScriptHostState.Created || State == ScriptHostState.Running;
        }