Service Fabric 无状态服务行为

Service Fabric stateless service behaviour

我正在开发 Service Fabric 无状态应用程序,当我尝试创建 service bus queue client.

时出现了一些奇怪的行为

Servie.cs class:

public class ServiceBusQueueService : IQueueService<SbMessage>
{
    private readonly QueueClient _client;

    public ServiceBusQueueService(string queueName)
    {
        var connectionString = ConfigurationManager.AppSettings.Get("ServiceBus.ConnectionString");

        // When executes this line, it throws an exception
        _client = QueueClient.CreateFromConnectionString(connectionString, queueName);
    }
  }

异常:


Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'C:\SfDevCluster\Data_App_Node_4\App\etc\etc\app.exe'.

Additional information: The runtime has encountered a fatal error. The address of the error was at 0x809d81d6, on thread 0x19a4. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

我不知道它会是什么。

我在使用 VS2015 update 3 时遇到了同样的错误,当 运行在本地结构仿真器中运行时(将测试它是否发生在真实集群上)它是低级服务总线的本机错误 运行 时间。我只能说现在就报告它。

Nuget 包 服务结构 C# 2/5.1.150 windows 蔚蓝服务总线。 3.3.1