Files
speckle-sharp-connectors/DUI3/Speckle.Connectors.DUI/Bindings/SendOperationManagerFactory.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

38 lines
1.1 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;
using Speckle.Sdk.Logging;
namespace Speckle.Connectors.DUI.Bindings;
[GenerateAutoInterface]
public class SendOperationManagerFactory(
IServiceProvider serviceProvider,
IOperationProgressManager operationProgressManager,
DocumentModelStore store,
ICancellationManager cancellationManager,
ISpeckleApplication speckleApplication,
ISdkActivityFactory activityFactory,
IAccountManager accountManager,
ILoggerFactory loggerFactory
) : ISendOperationManagerFactory
{
public ISendOperationManager Create() =>
new SendOperationManager(
#pragma warning disable CA2000
serviceProvider.CreateScope(),
#pragma warning restore CA2000
operationProgressManager,
store,
cancellationManager,
speckleApplication,
activityFactory,
accountManager,
loggerFactory.CreateLogger<SendOperationManager>()
);
}