예제 #1
0
 protected static string CreateMessage(uint index, string argument, Type argumentType, int result,
     string method,
     Udbus.Serialization.DbusConnectionParameters connectionParams)
 {
     string message = string.Format("dbus {0} argument[{1}]: '{2} {3} {4}'. result={5}. {6}"
         , method, index, FieldDirection.In, argumentType.Name, argument, result
         , connectionParams.ToString()
     );
     return message;
 }
예제 #2
0
 protected static new string CreateMessage(string method, Udbus.Serialization.DbusConnectionParameters connectionParams,
     Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     string message = string.Format("dbus error: {0}. {1}. {2} - '{3}'", msgStruct.error_name, msgStruct.ToString(), connectionParams.ToString(), method);
     return message;
 }
예제 #3
0
 protected static string CreateMessage(Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     string message = string.Format("dbus message error: {0}", msgStruct.ToString());
     return message;
 }
예제 #4
0
 protected static string CreateMessage(FieldDirection direction, uint index, string argument, Type argumentType, int result,
     string method, Udbus.Serialization.DbusConnectionParameters connectionParams,
     Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     string message = string.Format("dbus {0} argument[{1}]: '{2} {3} {4}'. result={5}. {6}. {7}"
         , method, index, direction, argumentType.Name, argument, result
         , msgStruct.ToString(), connectionParams.ToString()
     );
     return message;
 }
예제 #5
0
 protected static string CreateMessage(int result, Udbus.Serialization.DbusConnectionParameters connectionParams)
 {
     string message = string.Format("dbus marshalling error: {0}. {1}", result, connectionParams.ToString());
     return message;
 }
예제 #6
0
 protected static string CreateMessage(string action, uint serial, string method, int result, Udbus.Serialization.DbusConnectionParameters connectionParams)
 {
     string message = string.Format("dbus method '{0}' error building message: {1}. Result={2}. Serial={3}. {4}", method, action, result, serial, connectionParams.ToString());
     return message;
 }
예제 #7
0
 protected static string CreateMessage(string method, int result, Udbus.Serialization.DbusConnectionParameters connectionParams)
 {
     string message = string.Format("dbus method '{0}' send error: {1}. {2}", method, result, connectionParams.ToString());
     return message;
 }
예제 #8
0
 public static string CreateMessage(Udbus.Serialization.DbusConnectionParameters connectionParams,
     Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     string message = string.Format("dbus message error: {0}. {1}", msgStruct.ToString(), connectionParams.ToString());
     return message;
 }
 public static void RegisterForSignal(Udbus.Core.SignalEntry signalEntry, params Udbus.Core.IRegisterSignalHandlers[] registers)
 {
     Udbus.Core.Logging.ILog log = Udbus.Core.Logging.LogCreation.CreateRegisterSignalHandlerFunctionsLogger();
     log.Info("Registering signal: {0}", signalEntry.ToString());
     foreach (Udbus.Core.IRegisterSignalHandlers register in registers)
     {
         log.Info("Registering signal with {0}", register);
         register.AddSignalHandler(signalEntry);
     }
 }
예제 #10
0
 protected static string CreateMessage(string signal, Udbus.Core.DbusSignalParams signalParams,
     Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     string message = string.Format("dbus signal: {0} {1} - '{2}'", msgStruct.ToString(), signalParams.ToString(), signal);
     return message;
 }
예제 #11
0
 protected static string CreateMessage(uint index, string argument, Type argumentType, int result,
     string signal, Udbus.Core.DbusSignalParams signalParams,
     Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     string message = string.Format("dbus {0} argument[{1}]: '{2} {3}'. result={4}. {5}. {6}"
         , signal, index, argumentType.Name, argument, result
         , msgStruct.ToString(), signalParams.ToString()
     );
     return message;
 }