예제 #1
0
 public static IMessageBusBuilder AddCoder(this IMessageBusBuilder builder) => builder.AddCoder <PacketCoder>();
예제 #2
0
 public static IMessageBusBuilder AddCoder <T>(this IMessageBusBuilder builder) where T : IPacketCoder => builder.AddCoder(Activator.CreateInstance <T>());
예제 #3
0
 public static IMessageBusBuilder AddRemote(this IMessageBusBuilder builder)
 {
     MessageBus.Instance = new MessageBusRemote();
     return(builder.AddCoder());
 }