You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ParentInfo is a simple class to capture the context.
public interface IParentInfo
{
Guid InstanceId { get; }
Type ParentType { get; }
}
public class ParentInfo : IParentInfo
{
public Guid InstanceId { get; private set; } = Guid.NewGuid();
public Type ParentType { get; private set; }
public ParentInfo(Type parentType)
{
ParentType = parentType;
}
}
ParentType on the context is always null when the API Controller is instantiated. If I reference the StructureMap container directly and resolve a IParentInfo from it, the parent type is passed in correctly as expected.
The text was updated successfully, but these errors were encountered:
dotnet 2.0 Web API project
Startup.cs registration
ParentInfo
is a simple class to capture the context.ParentType on the context is always null when the API Controller is instantiated. If I reference the StructureMap container directly and resolve a IParentInfo from it, the parent type is passed in correctly as expected.
The text was updated successfully, but these errors were encountered: