Exemple #1
0
 public static void ProcessRequest(RpcHttpServerChannel channel, HttpListenerContext httpContext)
 {
     try {
         RpcHttpServerTransaction trans = new RpcHttpServerTransaction(httpContext);
         channel.TransactionStart(trans);
     } catch (Exception ex) {
         SystemLog.Error(LogEventID.RpcFailed, ex, "RpcServiceStartFailed");
     }
 }
 // Private Utilities -----------------------------------------------------------------
 private void SetupCustomPartialUpdateCommand(EntityCommand command)
 {
     AddParametersFromKey(command, command.TargetEntityInfo.PrimaryKey);
     foreach (var memberName in command.UpdateMemberNames)
     {
         var member = command.TargetEntityInfo.GetMember(memberName);
         if (member == null)
         {
             _log.Error("Member {0} not found in entity {1}, partial update command {2}", memberName, command.TargetEntityInfo.FullName, command.CommandName);
             continue;
         }
         //Skip PK members - forgive programmer if he accidentally includes them into update list
         if (member.Flags.IsSet(EntityMemberFlags.PrimaryKey))
         {
             continue;
         }
         command.Parameters.Add(new EntityCommandParameter(member));
     }
 }
Exemple #3
0
        public void Enqueue(SystemLogEvent evt)
        {
            if (!_enabled)
            {
                return;
            }

            try {
                _queueSystemLog.Enqueue(evt);
            } catch (Exception ex) {
                SystemLog.Error(LogEventID.TracingFailed, ex, "TracingSniffer.Enqueue:{0}", _url);
            }
        }