0
嗨服務時IAM試圖消耗我的應用程序的服務是引發錯誤錯誤12類型參數的方法「Eiss.Core.Services.FloorPlanMethods.ErrorWrap(字符串,System.Func) '不能從使用中推斷出來。嘗試明確指定類型參數。 E:\代碼\ WebPlatform中\科\ CodeFin \演示\ EISS \ CoreServiceInterfaces \ FloorPlanMethods.cs 48個13 CoreServiceInterfaces無法調用應用
[OperationContract]
[FaultContract(typeof(EissError))]
void ProcessCallHistoryRequestQueue();
BAL中
public static void ProcessCallHistoryRequestQueue()
{
Aspect.Wrap("CallHistoryRequestQueue.ProcessCallHistoryRequestQueue", new AuditParameters(),() =>{
// Get unprocessed Queue Item
var queueItem = DAL.CallHistoryRequestQueue.FetchQueueItemForProcessing();
Guid fileStoreGuid = Guid.Empty;
在DAL
public static STO.CallHistoryRequestQueue FetchQueueItemForProcessing()
{
return Aspect.WrapSingle("CallHistoryRequestQueue.FetchQueueItemForProcessing", new AuditParameters(), db =>
db.CallHistoryRequestQueues.OrderByDescending(a=>a.CallHistoryRequestQueueID).SingleOrDefault(sto => sto.IsProcessed == false));
}
在應用
public static List<CallHistoryRequestQueue> ProcessCallHistoryRequestQueue()
{
return ErrorWrap ("ProcessCallHistoryRequestQueue", s => s.ProcessCallHistoryRequestQueu()); error here
}