Files
speckle-sharp-connectors/DUI3/Speckle.Connectors.DUI/Bindings/ReceiveOperationManagerFactory.cs
T
Adam Hathcock eb8db87d9f feat (Grasshopper) dev enable account auth by dev token (#937)
* adds url by token component

* Add gubbins for passing Account objects and AccountResource objects to include token usage

* format

* add bits to make things work?

* revert usage of SpeckleApplication

* review fixes

* more reverts

* Fix tests

* token is correct now

* fix build

* fixes url resource exception and adds new icon

* Made model cards dumb and moved conversions

* can build NW

* actually, remove dead code

---------

Co-authored-by: Claire Kuang <kuang.claire@gmail.com>
2025-06-25 08:42:37 +00:00

35 lines
1.0 KiB
C#

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Speckle.Connectors.Common.Cancellation;
using Speckle.Connectors.DUI.Models;
using Speckle.InterfaceGenerator;
using Speckle.Sdk;
using Speckle.Sdk.Credentials;
namespace Speckle.Connectors.DUI.Bindings;
[GenerateAutoInterface]
public class ReceiveOperationManagerFactory(
IServiceProvider serviceProvider,
IOperationProgressManager operationProgressManager,
DocumentModelStore store,
ICancellationManager cancellationManager,
ISpeckleApplication speckleApplication,
IAccountManager accountManager,
ILoggerFactory loggerFactory
) : IReceiveOperationManagerFactory
{
public IReceiveOperationManager Create() =>
new ReceiveOperationManager(
#pragma warning disable CA2000
serviceProvider.CreateScope(),
#pragma warning restore CA2000
cancellationManager,
store,
speckleApplication,
operationProgressManager,
accountManager,
loggerFactory.CreateLogger<ReceiveOperationManager>()
);
}