我想創建一個類A的實例,它在我的單元測試中繼承了StatelessService類。但我不能。我嘗試了一切:嘲笑依賴關係,實現我自己的上下文等。 當我嘗試創建一個實例時,StatelessService在內部的某處拋出NullReferenceException。 完全可以做到嗎? class A : StatelessService
{
public A(StatelessServi
有沒有辦法從遠程位置調用服務結構服務公開的RPC端點? 此代碼創建客戶端能夠訪問RPC的服務織物是在同一臺機器上暴露: var client = ServiceProxy.Create<ISomeRpcInterface>(
new Uri("fabric:/AppName/ServiceName"),
null,
TargetReplicaSelector.Defau