小编Sil*_*ohn的帖子

Azure功能和缓存

我们计划开发一个Azure函数,其输入触发器是服务总线消息,输出将是blob存储.服务总线消息将包含图像URL,该功能将图像调整为预定义的分辨率,并上传到azure blob存储.

应该调整图像大小的分辨率存储在数据库中,Azure函数需要调用数据库以了解应该在输入消息中用于图像的分辨率.分辨率实际上是基于输入消息源配置的主数据.

进行数据库调用将是一项昂贵的调用,因为每次调用都必须进入数据库.有没有办法缓存数据并在不调用数据库的情况下使用它.喜欢内存缓存?

c# caching azure azure-functions

14
推荐指数
4
解决办法
9963
查看次数

添加自定义维度以请求遥测 - Azure 函数

我正在使用 v2.x 创建一个新的 Function 应用程序,并且正在集成 Application Insights 以进行请求日志记录,随着 Azure Function 现在与 App Insights 集成(如文档链接中所述),该请求日志记录会自动完成。我需要做的是在 Application Insights 请求遥测中的自定义维度中记录一些自定义字段。是否可以不使用自定义请求日志记录(使用TrackRequest方法)

azure azure-application-insights azure-functions

6
推荐指数
2
解决办法
1万
查看次数

Power BI 嵌入 Angular UI 应用程序中

我们开发了 Power BI 报告,并且需要将 Power BI 报告嵌入到 Angular 应用程序中。Angular 应用程序使用 OAuth 身份验证。我们已经了解了如何嵌入 Power BI 报告(如链接中所述 - 为客户嵌入 - https://learn.microsoft.com/en-us/power-bi/developer/embedding#embedding-for-your-customers

我们还需要在 Power BI 报告中进行细粒度授权。是否可以根据登录 Angular UI 应用程序的用户来过滤数据?

powerbi powerbi-embedded angular

5
推荐指数
1
解决办法
5026
查看次数

未找到 Swashbuckle 自定义资源

我将这个字符串添加到SwaggerConfig.cs

c.CustomAsset("index", thisAssembly, "Table.Web.CustomContent.index.html");
Run Code Online (Sandbox Code Playgroud)

...比我运行应用程序,转到swagger文档并收到错误:

发生了错误。找不到嵌入式资源 - Table.Web.CustomContent.index.html Swashbuckle.SwaggerUi.AssetNotFound

index.html的构建操作属性设置嵌入资源

我应该做什么来修复它?

swagger swashbuckle

4
推荐指数
1
解决办法
5622
查看次数

从 SQL Server Management Studio 连接到数据库服务器时出错

最近,在尝试从 SQL Server Management Studio 连接到任何 SQL Server 数据库时,出现错误 - Service 'Microsoft.SqlServer.Management.IRegistrationService' not found (Microsoft.SqlServer.Management.SDK.SqlStudio)

我尝试更新到最新版本的 SQL Server Management Studio,但没有任何变化。

完整的错误堆栈如下:

===================================

Service 'Microsoft.SqlServer.Management.IRegistrationService' not found (Microsoft.SqlServer.Management.SDK.SqlStudio)

------------------------------
Program Location:

   at Microsoft.SqlServer.Management.ServiceProvider.GetService[T](IServiceProvider serviceProvider, Boolean throwIfNotFound)
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.NavigationService.Initialize()
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.NavigationService.GetView(String urnPath)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.<GetColumnsFromNavigationService>d__11.MoveNext()
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.AddFields(List`1 list, IEnumerable`1 fields, IDictionary`2 allValidFields, AddFieldsFlags flags)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.GetParentFields(INodeInformation source, Dictionary`2& allValidColumns)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItemWithQuery(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, String urnQuery, Boolean registerBuilder, Boolean registerBuiltItems)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItem(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.Build(IList`1 …
Run Code Online (Sandbox Code Playgroud)

sql-server ssms

2
推荐指数
1
解决办法
2575
查看次数