/ src / common / AllExperiments / Microsoft.VariantAssignment / Contract / IVariantAssignmentProvider.cs
IVariantAssignmentProvider.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 // The goal of this class is to just mock out the Microsoft.VariantAssignment close source objects 6 namespace Microsoft.VariantAssignment.Contract 7 { 8 public interface IVariantAssignmentProvider : IDisposable 9 { 10 /// <summary> 11 /// Computes variant assignments based on <paramref name="request"/> data. 12 /// </summary> 13 /// <param name="request">Variant assignment parameters.</param> 14 /// <param name="ct">Propagates notification that operations should be canceled.</param> 15 /// <returns>An awaitable task that returns a <see cref="IVariantAssignmentResponse"/>.</returns> 16 Task<IVariantAssignmentResponse> GetVariantAssignmentsAsync(IVariantAssignmentRequest request, CancellationToken ct = default); 17 } 18 }