本文整理汇总了C#中INotification.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# INotification.ToString方法的具体用法?C# INotification.ToString怎么用?C# INotification.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类INotification
的用法示例。
在下文中一共展示了INotification.ToString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Execute
public override void Execute(INotification notification)
{
log.Debug(String.Format("Get notification: {0}{1}", Environment.NewLine, notification.ToString()));
if (notification.Body == null)
{
log.Error(String.Format("Body of notification is null: {0}{1}", Environment.NewLine, notification.ToString()));
return;
}
log.Info("Registering LoginCommand");
// Facade.RegisterCommand(ApplicationFacade.LOGIN_COMMAND, typeof(NOIS.TruckWeightMonitoring.Controller.LoginCommand));
//Facade.RegisterMediator(new LoginMediator(notification.Body));
//Facade.RegisterMediator(new ApplicationMediator());
}
示例2: Execute
public override void Execute(INotification notification)
{
base.Execute(notification);
Console.WriteLine(notification.ToString());
Facade.RegisterProxy(new SettingsProxy());
Facade.RegisterProxy(new StatusProxy());
Facade.RegisterProxy(new TaskProxy());
Facade.RegisterProxy(new TimerProxy());
Facade.RegisterProxy(new APIProxy());
}
示例3: Execute
public override void Execute(INotification noftication)
{
base.Execute(noftication);
Facade.RegisterProxy(new UserProxy());
//执行
Program cs = (Program)noftication.Body;
Facade.RegisterMediator(new UsetListMediator(cs.form));
//基类执行
Console.WriteLine(noftication.ToString());
}
示例4: NotificationFailed
private void NotificationFailed(object sender, INotification notification, Exception notificationFailureException)
{
logger.Debug("App Push send to {0} failed : {1} \r\n -> {2}",
sender,
notificationFailureException.ToString(),
notification.ToString());
}