public IFeatureBitDefinition BuildBit() { var now = SystemContext.Now(); var username = SystemContext.GetEnvironmentVariable("USERNAME"); return(new CommandFeatureBitDefintion { Name = _opts.Name, CreatedDateTime = now, LastModifiedDateTime = now, CreatedByUser = username, LastModifiedByUser = username, OnOff = _opts.OnOff, ExcludedEnvironments = _opts.ExcludedEnvironments, MinimumAllowedPermissionLevel = _opts.MinimumPermissionLevel, ExactAllowedPermissionLevel = _opts.ExactPermissionLevel }); }