2015-11-17 17 views
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 
    } 

回答

0

Th ere沒有足夠的細節給出詳細的解決方案,但該錯誤是調用通用方法而不指定類型的結果。很多時候編譯器可以爲你制定類型,但在這種情況下它是不明確的,需要你告訴它。