public OpenIddictDgraphOptions(IServiceProvider provider)
        {
            _provider = provider;

            DgraphExtensions.AddCustomType(typeof(OpenIddictDgraphApplication), new DgraphTypeAttribute(_applicationTypeName));
            DgraphExtensions.AddCustomType(typeof(OpenIddictDgraphAuthorization), new DgraphTypeAttribute(_authorizationTypeName));
            DgraphExtensions.AddCustomType(typeof(OpenIddictDgraphScope), new DgraphTypeAttribute(_scopeTypeName));
            DgraphExtensions.AddCustomType(typeof(OpenIddictDgraphToken), new DgraphTypeAttribute(_tokenTypeName));
        }
Example #2
0
 protected AEntity()
 {
     _dgraphType = new[] { DgraphExtensions.GetDType(this) };
     Id          = Guid.NewGuid();
     ExtraData   = new();
 }