public NetworkUpdateManager(Client client, IUpdateHub updateHub, IDefinitionManager manager) { this.client = client; this.updateHub = updateHub; hubSubscription = updateHub.Subscribe(this, DefaultChannels.Network); clientSubscription = client.Subscribe(this); definitionManager = manager; }
public DiskPersistenceManager(IExtensionResolver extensionResolver, ISettings Settings, IUpdateHub updateHub) { this.extensionResolver = extensionResolver; settings = Settings; databaseProvider = new DatabaseProvider(GetRoot(), TypeContainer.Get <ILogger>()); awaiterPool = TypeContainer.Get <IPool <Awaiter> >(); blockChangedNotificationPool = TypeContainer.Get <IPool <BlockChangedNotification> >(); chunkSubscription = updateHub.Subscribe(this, DefaultChannels.Chunk); }
public NetworkUpdateManager(Client client, IUpdateHub updateHub) { this.client = client; this.updateHub = updateHub; logger = (TypeContainer.GetOrNull <ILogger>() ?? NullLogger.Default).As(typeof(NetworkUpdateManager)); entityNotificationPool = TypeContainer.Get <IPool <EntityNotification> >(); blockChangedNotificationPool = TypeContainer.Get <IPool <BlockChangedNotification> >(); blocksChangedNotificationPool = TypeContainer.Get <IPool <BlocksChangedNotification> >(); packagePool = TypeContainer.Get <PackagePool>(); hubSubscription = updateHub.Subscribe(this, DefaultChannels.Network); clientSubscription = client.Subscribe(this); }