コード例 #1
0
 private BulkServiceClient Check()
 {
     if (cs == null)
     {
         cs = new BulkServiceClient("BasicHttpBinding_IBulkService");
     }
     else if (cs.State != CommunicationState.Opened && cs.State != CommunicationState.Opening)
     {
         try
         {
             cs.Open();
         }
         catch (Exception ex)
         {
             Log(new LogEventArgs(ServiceType.Reporting, "Check", ex.Message, null, ex, null, LogLevel.Warn));
         }
     }
     return(cs);
 }