Hide a couple of warnings

This commit is contained in:
Sipke Schoorstra 2021-03-23 14:52:11 +01:00
parent aff01d104a
commit 3ab0c94f94
4 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ namespace Elsa.Activities.Http
var response = _httpContextAccessor.HttpContext.Response;
if (response.HasStarted)
return Fault(T["Response has already started"]);
return Fault(T["Response has already started"]!);
return new RedirectResult(_httpContextAccessor, Location, Permanent);
}

View file

@ -10,7 +10,7 @@ namespace Elsa.Services.Models
}
public WorkflowExecutionContext WorkflowExecutionContext { get; }
public Type ContextType => WorkflowExecutionContext.WorkflowBlueprint.ContextOptions!.ContextType;
public Type ContextType => WorkflowExecutionContext.WorkflowBlueprint.ContextOptions!.ContextType!;
public string ContextId => WorkflowExecutionContext.WorkflowInstance.ContextId!;
public object Context => WorkflowExecutionContext.WorkflowContext!;
}

View file

@ -78,7 +78,7 @@ namespace Elsa.Services
continue;
}
var provider = new ExpressionActivityPropertyValueProvider(property.Expression, property.Syntax, prop.PropertyType);
var provider = new ExpressionActivityPropertyValueProvider(property.Expression!, property.Syntax!, prop.PropertyType);
propertyProviders.AddProvider(activityDefinition.ActivityId, property.Name, provider);
}
}

View file

@ -4,6 +4,6 @@ namespace ElsaDashboard.Application.Options
{
public class ElsaDashboardOptions
{
public Uri ElsaServerUrl { get; set; }
public Uri ElsaServerUrl { get; set; } = default!;
}
}