Пример #1
0
        public void StandUp(IIOCContainer container) => container
        .Register <IImplementationTypeResolver, ImplementationTypeResolver>()
        .Register <IEnvelope, EnvelopeModel>()
        .Register <IEnvelopeFactory, EnvelopeFactory>()
        .Register <IChatMessageEnvelope, ChatMessageEnvelope>()
        .Register <IChatMessageEnvelopeFactory, ChatMessageEnvelopeFactory>()
        .Register <IMarshaller, Marshaller>()


        .Register <ITack, Tack>()
        .Register <IBoards, Boards>()
        .Register <ISkyWatch, SkyWatch>()
        .Register <IFileStorage, FileStorage>()
        .Register <IDataInMemoryCache <IEnvelope>, DataInMemoryCache <IEnvelope> >()
        .Register <ISQLDBConfigurationProvider, SQLDBConfigurationProvider>()
        .Register <ISQLDBConfiguration, SQLDBConfiguration>()

        ;
Пример #2
0
        public void StandUp(IIOCContainer container) => container
        .Register <IModifyChatMessageService, ModifyChatMessageService>()
        .Register <IGetNextChatMessageService, GetNextChatMessageService>()
        .Register <IClientProxy, ClientProxy>()
        .Register <IServiceFarmLoadBalancer, ServiceFarmLoadBalancer>()
        .Register <IImplementationTypeResolver, ImplementationTypeResolver>()
        .Register <ITCPAvailablePortsService, TCPAvailablePortsService>()
        .Register <IEnvelope, EnvelopeModel>()
        .Register <IEnvelopeFactory, EnvelopeFactory>()
        .Register <IChatMessageEnvelope, ChatMessageEnvelope>()
        .Register <IChatMessageEnvelopeFactory, ChatMessageEnvelopeFactory>()
        .Register <IMarshaller, Marshaller>()
        .Register <ITransactionResult, TransactionResult>()
        .Register <ITransactionResultFactory, TransactionResultFactory>()


        .Register <IRoute <string>, Route <string> >()
        .Register <IRouteFactory <string>, RouteFactory <string> >()
        .Register <IMessageBus <string>, MessageBus <string> >()
        .Register <IMessageBusBank <string>, MessageBusBank <string> >()
        .Register <IRoutingTable <string>, RoutingTable <string> >()
        .Register <IRoutingService <string>, RoutingService <string> >()
        .Register <IMessageBusReaderBank <string>, MessageBusReaderBank <string> >()
        .Register <IMessageBusWriter <string>, MessageBusWriter <string> >()

        .Register <ITack, Tack>()
        .Register <IBoards, Boards>()
        .Register <ISkyWatch, SkyWatch>()
        .Register <IFileStorage, FileStorage>()
        .Register <IDataInMemoryCache <IEnvelope>, DataInMemoryCache <IEnvelope> >()
        .Register <ISQLDBConfigurationProvider, SQLDBConfigurationProvider>()
        .Register <ISQLDBConfiguration, SQLDBConfiguration>()



        ;