Пример #1
0
        private string RegisterFaultAnalysisServiceHelper(Guid partitionId, long replicaId, IFaultAnalysisService service)
        {
            FaultAnalysisServiceBroker broker = new FaultAnalysisServiceBroker(service);

            NativeCommon.IFabricStringResult nativeString = this.nativeAgent.RegisterFaultAnalysisService(
                partitionId,
                replicaId,
                broker);

            return(StringResult.FromNative(nativeString));
        }
 internal FaultAnalysisServiceBroker(IFaultAnalysisService service)
 {
     this.service = service;
 }
Пример #3
0
        public string RegisterFaultAnalysisService(Guid partitionId, long replicaId, IFaultAnalysisService service)
        {
            Requires.Argument <Guid>("partitionId", partitionId).NotNull();

            return(Utility.WrapNativeSyncInvokeInMTA(() => this.RegisterFaultAnalysisServiceHelper(partitionId, replicaId, service), "FaultAnalysisServiceAgent.RegisterFaultAnalysisService"));
        }