Skip to content

Conversation

@michael-hawker
Copy link

@michael-hawker michael-hawker commented Jun 25, 2020

This seems to be the only implementation of a RequestBuilder which doesn't have its corresponding interface?

This is part of a problem (also see https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/722) for anything use BaseFunctionMethodRequestBuilder as a RequestBuilder because it doesn't implement the interface and inherits from the base class directly here:

public abstract class BaseFunctionMethodRequestBuilder<T> : BaseRequestBuilder where T : IBaseRequest

Therefore things like the IDriveRecentRequestBuilder's implementation is not compatible to case to a generic IBaseRequestBuilder:

https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/9b74c2674969008669e4c46ac85bda7e6ad8a728/src/Microsoft.Graph/Requests/Generated/DriveRecentRequestBuilder.cs#L19

public partial class DriveRecentRequestBuilder : BaseFunctionMethodRequestBuilder<IDriveRecentRequest>, IDriveRecentRequestBuilder

This prevents a nice common way to receive RequestBuilders for general calls to the graph and make them on behalf of a developer as part of an auxiliary API.

This seems to be the only implementation of a RequestBuilder which doesn't have its corresponding interface?
@michael-hawker
Copy link
Author

FYI it looks like your pipeline is trying to run in my user context or something and failing based on permissions? (That's outside the scope of this fix, but seems like something that should be investigated)

@michael-hawker
Copy link
Author

@MIchaelMainer @darrelmiller any status on this?

@MIchaelMainer MIchaelMainer changed the base branch from dev to feature/supportIBaseRequestBuilder July 28, 2020 16:43
@MIchaelMainer MIchaelMainer merged commit f74aafc into microsoftgraph:feature/supportIBaseRequestBuilder Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants