コード例 #1
0
ファイル: GetMessages.cs プロジェクト: sergioc/ServiceControl
        public GetMessages()
        {
            Get["/messages", true] = (parameters, token) => { return(GetAllMessagesApi.Execute(this)); };


            Get["/endpoints/{name}/messages", true] = (parameters, token) =>
            {
                string endpoint = parameters.name;

                return(GetAllMessagesForEndpointApi.Execute(this, endpoint));
            };
        }
コード例 #2
0
 internal GetMessagesController(
     GetAllMessagesApi getAllMessagesApi,
     GetAllMessagesForEndpointApi getAllMessagesForEndpointApi,
     GetBodyByIdApi getBodyByIdApi,
     SearchApi searchApi,
     SearchEndpointApi searchEndpointApi)
 {
     this.getAllMessagesForEndpointApi = getAllMessagesForEndpointApi;
     this.getAllMessagesApi            = getAllMessagesApi;
     this.getBodyByIdApi    = getBodyByIdApi;
     this.searchEndpointApi = searchEndpointApi;
     this.searchApi         = searchApi;
 }
コード例 #3
0
 internal GetMessagesController(GetAllMessagesApi getAllMessagesApi, GetAllMessagesForEndpointApi getAllMessagesForEndpointApi)
 {
     this.getAllMessagesForEndpointApi = getAllMessagesForEndpointApi;
     this.getAllMessagesApi            = getAllMessagesApi;
 }