コード例 #1
0
ファイル: InProcNode.cs プロジェクト: avco2018/azure123
        /// <summary>
        /// Constructor.
        /// </summary>
        public InProcNode(IBuildComponentHost componentHost, INodeEndpoint inProcNodeEndpoint)
        {
            _componentHost       = componentHost;
            _nodeEndpoint        = inProcNodeEndpoint;
            _receivedPackets     = new ConcurrentQueue <INodePacket>();
            _packetReceivedEvent = new AutoResetEvent(false);
            _shutdownEvent       = new AutoResetEvent(false);

            _buildRequestEngine = componentHost.GetComponent(BuildComponentType.RequestEngine) as IBuildRequestEngine;

            _engineExceptionEventHandler         = OnEngineException;
            _newConfigurationRequestEventHandler = OnNewConfigurationRequest;
            _requestBlockedEventHandler          = OnNewRequest;
            _requestCompleteEventHandler         = OnRequestComplete;
        }
コード例 #2
0
ファイル: InProcNode.cs プロジェクト: hongli051/IronyTest
        /// <summary>
        /// Constructor.
        /// </summary>
        public InProcNode(IBuildComponentHost componentHost, INodeEndpoint inProcNodeEndpoint)
        {
            _componentHost       = componentHost;
            _nodeEndpoint        = inProcNodeEndpoint;
            _receivedPackets     = new Queue <INodePacket>();
            _packetReceivedEvent = new AutoResetEvent(false);
            _shutdownEvent       = new AutoResetEvent(false);

            _configurationProjectsLoaded = new HashSet <NGen <int> >();

            _buildRequestEngine = componentHost.GetComponent(BuildComponentType.RequestEngine) as IBuildRequestEngine;

            _engineExceptionEventHandler         = new EngineExceptionDelegate(OnEngineException);
            _newConfigurationRequestEventHandler = new NewConfigurationRequestDelegate(OnNewConfigurationRequest);
            _requestBlockedEventHandler          = new RequestBlockedDelegate(OnNewRequest);
            _requestCompleteEventHandler         = new RequestCompleteDelegate(OnRequestComplete);
        }
コード例 #3
0
ファイル: InProcNode.cs プロジェクト: cameron314/msbuild
        /// <summary>
        /// Constructor.
        /// </summary>
        public InProcNode(IBuildComponentHost componentHost, INodeEndpoint inProcNodeEndpoint)
        {
            _componentHost = componentHost;
            _nodeEndpoint = inProcNodeEndpoint;
            _receivedPackets = new Queue<INodePacket>();
            _packetReceivedEvent = new AutoResetEvent(false);
            _shutdownEvent = new AutoResetEvent(false);

            _configurationProjectsLoaded = new HashSet<NGen<int>>();

            _buildRequestEngine = componentHost.GetComponent(BuildComponentType.RequestEngine) as IBuildRequestEngine;

            _engineExceptionEventHandler = new EngineExceptionDelegate(OnEngineException);
            _newConfigurationRequestEventHandler = new NewConfigurationRequestDelegate(OnNewConfigurationRequest);
            _requestBlockedEventHandler = new RequestBlockedDelegate(OnNewRequest);
            _requestCompleteEventHandler = new RequestCompleteDelegate(OnRequestComplete);
        }
コード例 #4
0
ファイル: HttpAgent.cs プロジェクト: DracoBlue/RestClientCs
 public void delete(RequestCompleteDelegate completeDelegate)
 {
     this.rawCall("delete", null, null, completeDelegate);
 }
コード例 #5
0
ファイル: HttpAgent.cs プロジェクト: DracoBlue/RestClientCs
 public void patch(Dictionary <string, string> parameters, RequestCompleteDelegate completeDelegate)
 {
     this.rawCall("patch", null, parameters, completeDelegate);
 }
コード例 #6
0
ファイル: HttpAgent.cs プロジェクト: DracoBlue/RestClientCs
 public void get(Dictionary <string, string> parameters, RequestCompleteDelegate completeDelegate)
 {
     this.rawCall("get", parameters, null, completeDelegate);
 }
コード例 #7
0
ファイル: HttpAgent.cs プロジェクト: DracoBlue/RestClientCs
 public void get(RequestCompleteDelegate completeDelegate)
 {
     this.rawCall("get", null, null, completeDelegate);
 }
コード例 #8
0
ファイル: HttpAgent.cs プロジェクト: DracoBlue/RestClientCs
        protected void rawCall(string verb, Dictionary <string, string> queryParameters, Dictionary <string, string> postParameters, RequestCompleteDelegate completeDelegate)
        {
            HttpWebRequest request = this.createHttpRequest(verb, queryParameters, postParameters);

            request.BeginGetResponse(asyncResult =>
            {
                completeDelegate(this.getHttpResponseForRequest(request, asyncResult));
            }, null);
        }