Exemplo n.º 1
0
        private object ConstructMessageObservable(ClassifiedMethodInfo mi)
        {
            var msgObs         = typeof(MessageObservable <>).MakeGenericType(GetObservableMessageType(mi.MethodInfo));
            var msgObsInstance = Activator.CreateInstance(msgObs, _bus);

            return(msgObsInstance);
        }
Exemplo n.º 2
0
 private MethodInfo ConstructBusPublishMethod(ClassifiedMethodInfo mi)
 {
     var busPublish = _bus.GetType().GetRuntimeMethods()
         .First(m => m.Name == "Publish" && m.IsGenericMethod)
         .MakeGenericMethod(GetObservableMessageTypeFromReturn(mi.MethodInfo));
     return busPublish;
 }
Exemplo n.º 3
0
        private MethodInfo ConstructBusPublishMethod(ClassifiedMethodInfo mi)
        {
            var busPublish = _bus.GetType().GetRuntimeMethods()
                             .First(m => m.Name == "Publish" && m.IsGenericMethod)
                             .MakeGenericMethod(GetObservableMessageTypeFromReturn(mi.MethodInfo));

            return(busPublish);
        }
Exemplo n.º 4
0
 private object ConstructMessageObservable(ClassifiedMethodInfo mi)
 {
     var msgObs = typeof (MessageObservable<>).MakeGenericType(GetObservableMessageType(mi.MethodInfo));
     var msgObsInstance = Activator.CreateInstance(msgObs, _bus);
     return msgObsInstance;
 }
Exemplo n.º 5
0
 protected bool Equals(ClassifiedMethodInfo other)
 {
     return MethodInfo.Equals(other.MethodInfo);
 }
Exemplo n.º 6
0
 protected bool Equals(ClassifiedMethodInfo other)
 {
     return(MethodInfo.Equals(other.MethodInfo));
 }