コード例 #1
0
        public ICoordinationListener Add(ITwoPhaseCommitParticipant serviceInstance)
        {
            DebugTrace.TraceEnter("CoordinationService.Add (ITwoPhaseCommitParticipant)");
            this.AssertProtocolServiceMode();
            IWSTwoPhaseCommitParticipant dispatcher = TwoPhaseCommitParticipantDispatcher.Instance(this, serviceInstance);
            ICoordinationListener        listener   = this.CreateService(dispatcher, dispatcher.ContractType, BindingStrings.TwoPhaseCommitParticipantSuffix(this.protocolVersion));

            DebugTrace.TraceLeave("CoordinationService.Add (ITwoPhaseCommitParticipant)");
            return(listener);
        }
 public TwoPhaseCommitParticipantDispatcher11(CoordinationService service, ITwoPhaseCommitParticipant dispatch)
 {
     ProtocolVersionHelper.AssertProtocolVersion11(service.ProtocolVersion, typeof(TwoPhaseCommitParticipantDispatcher11), "constr");
     this.twoPhaseCommitParticipantDispatcher = new TwoPhaseCommitParticipantDispatcher(service, dispatch);
 }
 public TwoPhaseCommitParticipantDispatcher11(CoordinationService service, ITwoPhaseCommitParticipant dispatch)
 {
     ProtocolVersionHelper.AssertProtocolVersion11(service.ProtocolVersion, typeof(TwoPhaseCommitParticipantDispatcher11), "constr");
     this.twoPhaseCommitParticipantDispatcher = new TwoPhaseCommitParticipantDispatcher(service, dispatch);
 }