Ejemplo n.º 1
0
        public void CanAccessValue()
        {
            var obj = new object();

            Assert.Same(obj, DotNetObjectReference.Create(obj).Value);
        }
Ejemplo n.º 2
0
 public static async Task <string> RegisterOnWindowMouseMoveEvent(this IJSRuntime jsRuntime, BitComponentBase dontetHelper, string callbackName)
 {
     return(await jsRuntime.InvokeAsync <string>("BitColorPicker.registerOnWindowMouseMoveEvent", DotNetObjectReference.Create(dontetHelper),
                                                 callbackName));
 }
Ejemplo n.º 3
0
 public static async Task BitDatePickerRegisterOnDocumentClickEvent(this IJSRuntime jsRuntime, BitComponentBase dontetHelper, string callbackName)
 {
     await jsRuntime.InvokeAsync <string>("BitDatePicker.registerOnDocumentClickEvent", DotNetObjectReference.Create(dontetHelper),
                                          dontetHelper.UniqueId.ToString(), callbackName);
 }
Ejemplo n.º 4
0
 public static async Task <BitFileInfo[]?> InitUploader(this IJSRuntime jsRuntime, ElementReference element, DotNetObjectReference <BitFileUpload>?dotnetObjectReference, string uploadAddress)
 {
     if (string.IsNullOrEmpty(uploadAddress) || dotnetObjectReference is null)
     {
         return(null);
     }
     return(await jsRuntime.InvokeAsync <BitFileInfo[]>("BitFileUploader.init", element, dotnetObjectReference, uploadAddress));
 }