예제 #1
0
        public void CloneEqualsAndDeepCloneMethodsAreImplemented()
        {
            Assert.DoesNotThrow(() =>
            {
                var cloneMethods = new global::System.Func <Map <string, string>, Map <string, string> >[]
                {
                    m => m.clone(), m => m.deepClone(),
                };

                foreach (var cloneMethod in cloneMethods)
                {
                    var map = new Map <string, string> {
                        { "Hello", "World" }
                    };
                    Assert.AreEqual(1, map.size());

                    var mapClone = cloneMethod(map);
                    Assert.NotNull(mapClone);
                    Assert.AreEqual(1, mapClone.size());
                    Assert.IsTrue(mapClone.equals(map));

                    mapClone.put("Again", "And Again");
                    Assert.AreEqual(2, mapClone.size());

                    Assert.AreEqual(1, map.size());
                    Assert.IsFalse(mapClone.equals(map));
                }
            });
        }
예제 #2
0
        public global::System.IDisposable Add(global::System.Func <global::System.Boolean> filter, global::System.Func <TResult> listener, global::System.Double sequence)
        {
            var element = new ChainElement(filter, listener, sequence);

            _chain.Add(element);
            _chain.Sort((el1, el2) => global::System.Collections.Generic.Comparer <global::System.Double> .Default.Compare(el1.Sequence, el2.Sequence));
            return(new CallbackChainRegistration(() => _chain.Remove(element)));
        }
 private static IEnumerable <T> WhereIterator <T>(IEnumerable <T> source, global::System.Func <T, bool> predicate)
 {
     return(new _WhereIterator_d__0 <T>(-2)
     {
         _3_source = source,
         _3_predicate = predicate
     });
 }
 private static IEnumerable <S> SelectIterator <T, S>(IEnumerable <T> source, global::System.Func <T, int, S> selector)
 {
     return(new _SelectIterator_d__13 <T, S>(-2)
     {
         _3_source = source,
         _3_selector = selector
     });
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlCmdBuilderFactory"/> class.
 /// </summary>
 /// <param name="connectionFactory">The connection factory.</param>
 /// <exception cref="System.ArgumentNullException">connectionFactory</exception>
 public SqlCmdBuilderFactory(global::System.Func <global::System.Data.SqlClient.SqlConnection> connectionFactory)
 {
     if (ReferenceEquals(null, connectionFactory))
     {
         throw new global::System.ArgumentNullException(nameof(connectionFactory));
     }
     this.m_connectionFactory = connectionFactory;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlCmdBuilderFactory"/> class.
 /// </summary>
 /// <param name="connectionString">The connection string.</param>
 /// <exception cref="global::System.ArgumentNullException">connectionString</exception>
 public SqlCmdBuilderFactory(string connectionString)
 {
     if (ReferenceEquals(connectionString, null))
     {
         throw new global::System.ArgumentNullException(nameof(connectionString));
     }
     m_connectionFactory = () => new global::System.Data.SqlClient.SqlConnection(connectionString);
 }
예제 #7
0
 public Container()
     : this(new Uri("http://localhost:50231"))
 {
     SendingRequest += Container_SendingRequest;
     IgnoreResourceNotFoundException = true;
     ResolveName = new global::System.Func<global::System.Type, string>(ResolveNameFromType);
     ResolveType = new global::System.Func<string, global::System.Type>(ResolveTypeFromName);
     OnContextCreated();
     this.Format.LoadServiceModel = LoadModel;
     this.Format.UseJson();
 }
예제 #8
0
 public Container()
     : this(new Uri("http://localhost:50231"))
 {
     SendingRequest += Container_SendingRequest;
     IgnoreResourceNotFoundException = true;
     ResolveName = new global::System.Func <global::System.Type, string>(ResolveNameFromType);
     ResolveType = new global::System.Func <string, global::System.Type>(ResolveTypeFromName);
     OnContextCreated();
     this.Format.LoadServiceModel = LoadModel;
     this.Format.UseJson();
 }
        //public static void ForEach<T, R>(this IEnumerable<T> array, Func<T, R> func)
        //{
        //    array.ForEach(func.AsAction());
        //}



        public static U Aggregate <T, U>(this IEnumerable <T> source,
                                         U seed, global::System.Func <U, T, U> func)
        {
            U result = seed;

            foreach (T element in source.AsEnumerable())
            {
                result = func(result, element);
            }

            return(result);
        }
        //public static IEnumerable<T> Where<T>(this T[] source, Func<T, bool> predicate)
        //{
        //    return Where( (SZArrayEnumerator<T>)source, predicate);
        //}

        //[Script(IsDebugCode=true)]
        public static IEnumerable <T> Where <T>(this IEnumerable <T> source, global::System.Func <T, bool> predicate)
        {
            if (predicate == null)
            {
                throw new ArgumentNullException("predicate");
            }
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            return(WhereIterator <T>(source.AsEnumerable(), predicate));
        }
예제 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlCmdBuilderFactory"/> class.
 /// </summary>
 /// <param name="connectionStringFactory">The connection string factory.</param>
 /// <exception cref="System.ArgumentNullException">connectionStringFactory</exception>
 public SqlCmdBuilderFactory(global::System.Func <string> connectionStringFactory)
 {
     if (ReferenceEquals(null, connectionStringFactory))
     {
         throw new global::System.ArgumentNullException(nameof(connectionStringFactory));
     }
     this.m_connectionFactory = () =>
     {
         var connectionString = connectionStringFactory();
         var connection       = new global::System.Data.SqlClient.SqlConnection(connectionString);
         return(connection);
     };
 }
        public static int Count <T>(this IEnumerable <T> e, global::System.Func <T, bool> predicate)
        {
            int c = 0;

            foreach (var v in e.AsEnumerable())
            {
                if (predicate(v))
                {
                    c++;
                }
            }

            return(c);
        }
예제 #13
0
        public unsafe static void SetIgnoreBlock([BlockProxy(typeof(ObjCRuntime.Trampolines.NIDFuncArity1V0))] global::System.Func <bool> block)
        {
            if (block == null)
            {
                throw new ArgumentNullException("block");
            }
            BlockLiteral *block_ptr_block;
            BlockLiteral  block_block;

            block_block     = new BlockLiteral();
            block_ptr_block = &block_block;
            block_block.SetupBlock(Trampolines.SDFuncArity1V0.Handler, block);

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(class_ptr, Selector.GetHandle("setIgnoreBlock:"), (IntPtr)block_ptr_block);
            block_ptr_block->CleanupBlock();
        }
예제 #14
0
 public GetHeroBuilder(
     global::StrawberryShake.IEntityStore entityStore,
     global::System.Func <global::System.Text.Json.JsonElement, global::StrawberryShake.EntityId> extractId,
     global::StrawberryShake.IOperationResultDataFactory <IGetHero> resultDataFactory,
     global::StrawberryShake.Serialization.ISerializerResolver serializerResolver)
 {
     _entityStore = entityStore
                    ?? throw new global::System.ArgumentNullException(nameof(entityStore));
     _extractId = extractId
                  ?? throw new global::System.ArgumentNullException(nameof(extractId));
     _resultDataFactory = resultDataFactory
                          ?? throw new global::System.ArgumentNullException(nameof(resultDataFactory));
     _episodeParser = serializerResolver.GetLeafValueParser <global::System.String, Episode>("Episode")
                      ?? throw new global::System.ArgumentNullException(nameof(_episodeParser));
     _stringParser = serializerResolver.GetLeafValueParser <global::System.String, global::System.String>("String")
                     ?? throw new global::System.ArgumentNullException(nameof(_stringParser));
 }
예제 #15
0
 public GetPeopleBuilder(
     global::StrawberryShake.IEntityStore entityStore,
     global::System.Func <global::System.Text.Json.JsonElement, global::StrawberryShake.EntityId> extractId,
     global::StrawberryShake.IOperationResultDataFactory <IGetPeopleResult> resultDataFactory,
     global::StrawberryShake.Serialization.ISerializerResolver serializerResolver)
 {
     _entityStore = entityStore
                    ?? throw new global::System.ArgumentNullException(nameof(entityStore));
     _extractId = extractId
                  ?? throw new global::System.ArgumentNullException(nameof(extractId));
     _resultDataFactory = resultDataFactory
                          ?? throw new global::System.ArgumentNullException(nameof(resultDataFactory));
     _stringParser = serializerResolver.GetLeafValueParser <global::System.String, global::System.String>("String")
                     ?? throw new global::System.ArgumentNullException(nameof(_stringParser));
     _booleanParser = serializerResolver.GetLeafValueParser <global::System.Boolean, global::System.Boolean>("Boolean")
                      ?? throw new global::System.ArgumentNullException(nameof(_booleanParser));
     _dateTimeOffsetParser = serializerResolver.GetLeafValueParser <global::System.String, global::System.DateTimeOffset>("DateTime")
                             ?? throw new global::System.ArgumentNullException(nameof(_dateTimeOffsetParser));
 }
예제 #16
0
        public static IEnumerable <T> SkipWhile <T>(this IEnumerable <T> source, global::System.Func <T, bool> predicate)
        {
            //tested by X:\jsc.svn\examples\javascript\RuntimeHTMLDesignMode\RuntimeHTMLDesignMode\Application.cs

            var SkipModeActive = true;

            return(source.Where(
                       k =>
            {
                if (SkipModeActive)
                {
                    SkipModeActive = predicate(k);

                    if (SkipModeActive)
                    {
                        return false;
                    }
                }

                return true;
            }
                       ));
        }
예제 #17
0
        public void CloneEqualsAndDeepCloneMethodsAreImplemented()
        {
            Assert.DoesNotThrow(() =>
            {
                var cloneMethods = new global::System.Func <List <string>, List <string> >[]
                {
                    l => l.clone(), l => l.deepClone(),
                    l => l.deepClone(true), l => l.deepClone(false),
                    l => l.deepClone(true, true), l => l.deepClone(true, false),
                    l => l.deepClone(false, true), l => l.deepClone(false, false),
                    l => l.deepClone(true, true, true), l => l.deepClone(true, true, false),
                    l => l.deepClone(true, false, true), l => l.deepClone(true, false, false),
                    l => l.deepClone(false, true, true), l => l.deepClone(false, true, false),
                    l => l.deepClone(false, false, true), l => l.deepClone(false, false, false),
                };

                foreach (var cloneMethod in cloneMethods)
                {
                    var list = new List <string> {
                        "Hello", "World"
                    };
                    Assert.AreEqual(2, list.size());

                    var listClone = cloneMethod(list);
                    Assert.NotNull(listClone);
                    Assert.AreEqual(2, listClone.size());
                    Assert.IsTrue(listClone.equals(list));

                    listClone.add("Again");
                    listClone.add("And Again");
                    Assert.AreEqual(4, listClone.size());

                    Assert.AreEqual(2, list.size());
                    Assert.IsFalse(listClone.equals(list));
                }
            });
        }
예제 #18
0
/// <summary>
/// Initialize the template
/// </summary>
        public virtual void Initialize()
        {
            if ((this.Errors.HasErrors == false))
            {
                bool FunctionContextPropertyValueAcquired = false;
                if (this.Session.ContainsKey("FunctionContextProperty"))
                {
                    this._FunctionContextPropertyField   = ((string)(this.Session["FunctionContextProperty"]));
                    FunctionContextPropertyValueAcquired = true;
                }
                if ((FunctionContextPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("FunctionContextProperty");
                    if ((data != null))
                    {
                        this._FunctionContextPropertyField = ((string)(data));
                    }
                }
                bool GetParamNameValueAcquired = false;
                if (this.Session.ContainsKey("GetParamName"))
                {
                    this._GetParamNameField   = ((global::System.Func <string, string>)(this.Session["GetParamName"]));
                    GetParamNameValueAcquired = true;
                }
                if ((GetParamNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetParamName");
                    if ((data != null))
                    {
                        this._GetParamNameField = ((global::System.Func <string, string>)(data));
                    }
                }
                bool TimeoutValueAcquired = false;
                if (this.Session.ContainsKey("Timeout"))
                {
                    this._TimeoutField   = ((int)(this.Session["Timeout"]));
                    TimeoutValueAcquired = true;
                }
                if ((TimeoutValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Timeout");
                    if ((data != null))
                    {
                        this._TimeoutField = ((int)(data));
                    }
                }
                bool UseTransactionValueAcquired = false;
                if (this.Session.ContainsKey("UseTransaction"))
                {
                    this._UseTransactionField   = ((bool)(this.Session["UseTransaction"]));
                    UseTransactionValueAcquired = true;
                }
                if ((UseTransactionValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("UseTransaction");
                    if ((data != null))
                    {
                        this._UseTransactionField = ((bool)(data));
                    }
                }
                bool TransactionPropertyValueAcquired = false;
                if (this.Session.ContainsKey("TransactionProperty"))
                {
                    this._TransactionPropertyField   = ((string)(this.Session["TransactionProperty"]));
                    TransactionPropertyValueAcquired = true;
                }
                if ((TransactionPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("TransactionProperty");
                    if ((data != null))
                    {
                        this._TransactionPropertyField = ((string)(data));
                    }
                }
                bool ConnectionTypeValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionType"))
                {
                    this._ConnectionTypeField   = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(this.Session["ConnectionType"]));
                    ConnectionTypeValueAcquired = true;
                }
                if ((ConnectionTypeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionType");
                    if ((data != null))
                    {
                        this._ConnectionTypeField = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(data));
                    }
                }
                bool ConnectionStringPropertyValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionStringProperty"))
                {
                    this._ConnectionStringPropertyField   = ((string)(this.Session["ConnectionStringProperty"]));
                    ConnectionStringPropertyValueAcquired = true;
                }
                if ((ConnectionStringPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionStringProperty");
                    if ((data != null))
                    {
                        this._ConnectionStringPropertyField = ((string)(data));
                    }
                }
                bool SqlValueAcquired = false;
                if (this.Session.ContainsKey("Sql"))
                {
                    this._SqlField   = ((string)(this.Session["Sql"]));
                    SqlValueAcquired = true;
                }
                if ((SqlValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Sql");
                    if ((data != null))
                    {
                        this._SqlField = ((string)(data));
                    }
                }
                bool ReturnModeValueAcquired = false;
                if (this.Session.ContainsKey("ReturnMode"))
                {
                    this._ReturnModeField   = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ExecuteSQLShared.ReturnModeType)(this.Session["ReturnMode"]));
                    ReturnModeValueAcquired = true;
                }
                if ((ReturnModeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ReturnMode");
                    if ((data != null))
                    {
                        this._ReturnModeField = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ExecuteSQLShared.ReturnModeType)(data));
                    }
                }
                bool SqlIdentifiersValueAcquired = false;
                if (this.Session.ContainsKey("SqlIdentifiers"))
                {
                    this._SqlIdentifiersField   = ((string)(this.Session["SqlIdentifiers"]));
                    SqlIdentifiersValueAcquired = true;
                }
                if ((SqlIdentifiersValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("SqlIdentifiers");
                    if ((data != null))
                    {
                        this._SqlIdentifiersField = ((string)(data));
                    }
                }
                bool SqlValuesValueAcquired = false;
                if (this.Session.ContainsKey("SqlValues"))
                {
                    this._SqlValuesField   = ((string)(this.Session["SqlValues"]));
                    SqlValuesValueAcquired = true;
                }
                if ((SqlValuesValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("SqlValues");
                    if ((data != null))
                    {
                        this._SqlValuesField = ((string)(data));
                    }
                }
                bool ResultTypeFieldsValueAcquired = false;
                if (this.Session.ContainsKey("ResultTypeFields"))
                {
                    this._ResultTypeFieldsField   = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ResultTypeFields)(this.Session["ResultTypeFields"]));
                    ResultTypeFieldsValueAcquired = true;
                }
                if ((ResultTypeFieldsValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ResultTypeFields");
                    if ((data != null))
                    {
                        this._ResultTypeFieldsField = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ResultTypeFields)(data));
                    }
                }
                bool RowTypeValueAcquired = false;
                if (this.Session.ContainsKey("RowType"))
                {
                    this._RowTypeField   = ((global::Twenty57.Linx.Plugin.Common.ITypeReference)(this.Session["RowType"]));
                    RowTypeValueAcquired = true;
                }
                if ((RowTypeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("RowType");
                    if ((data != null))
                    {
                        this._RowTypeField = ((global::Twenty57.Linx.Plugin.Common.ITypeReference)(data));
                    }
                }
                bool RowTypeNameValueAcquired = false;
                if (this.Session.ContainsKey("RowTypeName"))
                {
                    this._RowTypeNameField   = ((string)(this.Session["RowTypeName"]));
                    RowTypeNameValueAcquired = true;
                }
                if ((RowTypeNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("RowTypeName");
                    if ((data != null))
                    {
                        this._RowTypeNameField = ((string)(data));
                    }
                }
                bool ExecutionPathNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathName"))
                {
                    this._ExecutionPathNameField   = ((string)(this.Session["ExecutionPathName"]));
                    ExecutionPathNameValueAcquired = true;
                }
                if ((ExecutionPathNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathName");
                    if ((data != null))
                    {
                        this._ExecutionPathNameField = ((string)(data));
                    }
                }
                bool ExecutionPathOutputNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathOutputName"))
                {
                    this._ExecutionPathOutputNameField   = ((string)(this.Session["ExecutionPathOutputName"]));
                    ExecutionPathOutputNameValueAcquired = true;
                }
                if ((ExecutionPathOutputNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathOutputName");
                    if ((data != null))
                    {
                        this._ExecutionPathOutputNameField = ((string)(data));
                    }
                }
            }
        }
 public static void CreateBotoneraAcciones_0 <T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, T __arg0, int __seq1, global::System.Func <global::System.String, global::System.Threading.Tasks.Task <global::System.Collections.Generic.IEnumerable <T> > > __arg1, int __seq2, global::System.Func <T, T> __arg2, int __seq3, global::System.Boolean __arg3, int __seq4, global::System.Boolean __arg4, int __seq5, global::Microsoft.AspNetCore.Components.EventCallback __arg5, int __seq6, global::Microsoft.AspNetCore.Components.RenderFragment __arg6, int __seq7, global::Microsoft.AspNetCore.Components.RenderFragment <T> __arg7)
 {
     __builder.OpenComponent <global::SurcosBlazor.Client.Shared.BotoneraAcciones <T> >(seq);
     __builder.AddAttribute(__seq0, "Titem", __arg0);
     __builder.AddAttribute(__seq1, "SearchMethod", __arg1);
     __builder.AddAttribute(__seq2, "ElementoSeleccionado", __arg2);
     __builder.AddAttribute(__seq3, "editar", __arg3);
     __builder.AddAttribute(__seq4, "eliminar", __arg4);
     __builder.AddAttribute(__seq5, "eliminarFunc", __arg5);
     __builder.AddAttribute(__seq6, "modalContentEditar", __arg6);
     __builder.AddAttribute(__seq7, "MyResultTemplate", __arg7);
     __builder.CloseComponent();
 }
예제 #20
0
 public static void CreateTemplatedList_0 <TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Func <global::System.Threading.Tasks.Task <global::System.Collections.Generic.List <TItem> > > __arg0, int __seq1, global::System.String __arg1, int __seq2, global::Microsoft.AspNetCore.Components.RenderFragment __arg2, int __seq3, global::Microsoft.AspNetCore.Components.RenderFragment __arg3, int __seq4, global::Microsoft.AspNetCore.Components.RenderFragment <TItem> __arg4)
 {
     __builder.OpenComponent <global::BlazingPizza.ComponentsLibrary.TemplatedList <TItem> >(seq);
     __builder.AddAttribute(__seq0, "Loader", __arg0);
     __builder.AddAttribute(__seq1, "ListGroupClass", __arg1);
     __builder.AddAttribute(__seq2, "LoadingContent", __arg2);
     __builder.AddAttribute(__seq3, "EmptyContent", __arg3);
     __builder.AddAttribute(__seq4, "ItemContent", __arg4);
     __builder.CloseComponent();
 }
예제 #21
0
 public virtual Task <NSArray> PresentTextInputControllerAsync(global::System.Func <NSString, NSArray> suggestionsHandler, WKTextInputMode inputMode)
 {
     throw new PlatformNotSupportedException(Constants.WatchKitRemoved);
 }
예제 #22
0
 public virtual void PresentTextInputController(global::System.Func <NSString, NSArray> suggestionsHandler, WKTextInputMode inputMode, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity1V208))] global::System.Action <NSArray> completion)
 {
     throw new PlatformNotSupportedException(Constants.WatchKitRemoved);
 }
예제 #23
0
 public static void CreatePager_0 <T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::TimeTracker.Client.Models.PagedList <T> __arg0, int __seq1, global::System.Func <global::System.Int32, global::System.Threading.Tasks.Task> __arg1)
 {
     __builder.OpenComponent <global::TimeTracker.Client.Shared.Pager <T> >(seq);
     __builder.AddAttribute(__seq0, "Model", __arg0);
     __builder.AddAttribute(__seq1, "Loader", __arg1);
     __builder.CloseComponent();
 }
예제 #24
0
 public static void CreateMultipleSelectorTypeahead_6 <T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Func <global::System.String, global::System.Threading.Tasks.Task <global::System.Collections.Generic.IEnumerable <T> > > __arg0, int __seq1, global::System.Collections.Generic.List <T> __arg1, int __seq2, global::Microsoft.AspNetCore.Components.RenderFragment <T> __arg2, int __seq3, global::Microsoft.AspNetCore.Components.RenderFragment <T> __arg3)
 {
     __builder.OpenComponent <global::Movies_Blazor.Client.Shared.MultipleSelectorTypeahead <T> >(seq);
     __builder.AddAttribute(__seq0, "SearchMethod", __arg0);
     __builder.AddAttribute(__seq1, "SelectedElements", __arg1);
     __builder.AddAttribute(__seq2, "MyResultTemplate", __arg2);
     __builder.AddAttribute(__seq3, "MyListTemplate", __arg3);
     __builder.CloseComponent();
 }
예제 #25
0
 public static global::Windows.Foundation.IAsyncOperationWithProgress <TResult, TProgress> Run <TResult, TProgress>(global::System.Func <global::System.Threading.CancellationToken, global::System.IProgress <TProgress>, global::System.Threading.Tasks.Task <TResult> > taskProvider)
 {
     throw null;
 }
예제 #26
0
 public static global::Windows.Foundation.IAsyncAction Run(global::System.Func <global::System.Threading.CancellationToken, global::System.Threading.Tasks.Task> taskProvider)
 {
     throw null;
 }
예제 #27
0
 public virtual Task <NSArray> PresentTextInputControllerAsync(global::System.Func <NSString, NSArray> suggestionsHandler, WKTextInputMode inputMode)
 {
     throw new PlatformNotSupportedException("The WatchKit framework has been removed from iOS");
 }
예제 #28
0
 public static void CreateCustomTypeahead_0 <TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Func <global::System.String, global::System.Threading.Tasks.Task <global::System.Collections.Generic.IEnumerable <TItem> > > __arg0, int __seq1, TItem __arg1, int __seq2, global::Microsoft.AspNetCore.Components.EventCallback <TItem> __arg2, int __seq3, global::Microsoft.AspNetCore.Components.RenderFragment <TItem> __arg3)
 {
     __builder.OpenComponent <global::SurcosBlazor.Client.Shared.CustomTypeahead <TItem> >(seq);
     __builder.AddAttribute(__seq0, "SearchMethod", __arg0);
     __builder.AddAttribute(__seq1, "Value", __arg1);
     __builder.AddAttribute(__seq2, "ValueChanged", __arg2);
     __builder.AddAttribute(__seq3, "ResultTemplate", __arg3);
     __builder.CloseComponent();
 }
 public static void AddEventHandler <T>(global::System.Func <T, global::System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> addMethod, global::System.Action <global::System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, T handler)
 {
 }
예제 #30
0
 /// <summary>Called to dispatch events to the common module listener</summary>
 /// <param name="id">The ID of the event </param>
 /// <param name="token">The cancellation token for the event </param>
 /// <param name="getEventData">A delegate to get the detailed event data</param>
 /// <param name="signal">The callback for the event dispatcher </param>
 /// <param name="invocationInfo">The <see cref="System.Management.Automation.InvocationInfo" /> from the cmdlet</param>
 /// <param name="parameterSetName">the cmdlet's parameterset name.</param>
 /// <param name="correlationId">the cmdlet's correlation id.</param>
 /// <param name="processRecordId">the cmdlet's process record correlation id.</param>
 /// <param name="exception">the exception that is being thrown (if available)</param>
 /// <returns>
 /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the event is completed.
 /// </returns>
 public async global::System.Threading.Tasks.Task Signal(string id, global::System.Threading.CancellationToken token, global::System.Func <global::System.EventArgs> getEventData, SignalDelegate signal, global::System.Management.Automation.InvocationInfo invocationInfo, string parameterSetName, string correlationId, string processRecordId, global::System.Exception exception)
 {
     using ( NoSynchronizationContext )
     {
         await EventListener?.Invoke(id, token, getEventData, signal, invocationInfo, parameterSetName, correlationId, processRecordId, exception);
     }
 }
/// <summary>
/// Initialize the template
/// </summary>
        public override void Initialize()
        {
            base.Initialize();
            if ((this.Errors.HasErrors == false))
            {
                bool ModelValueAcquired = false;
                if (this.Session.ContainsKey("Model"))
                {
                    this._ModelField   = ((global::Microsoft.EntityFrameworkCore.Metadata.IModel)(this.Session["Model"]));
                    ModelValueAcquired = true;
                }
                if ((ModelValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Model");
                    if ((data != null))
                    {
                        this._ModelField = ((global::Microsoft.EntityFrameworkCore.Metadata.IModel)(data));
                    }
                }
                bool ContextNamespaceValueAcquired = false;
                if (this.Session.ContainsKey("ContextNamespace"))
                {
                    this._ContextNamespaceField   = ((string)(this.Session["ContextNamespace"]));
                    ContextNamespaceValueAcquired = true;
                }
                if ((ContextNamespaceValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ContextNamespace");
                    if ((data != null))
                    {
                        this._ContextNamespaceField = ((string)(data));
                    }
                }
                bool ModelNamespaceValueAcquired = false;
                if (this.Session.ContainsKey("ModelNamespace"))
                {
                    this._ModelNamespaceField   = ((string)(this.Session["ModelNamespace"]));
                    ModelNamespaceValueAcquired = true;
                }
                if ((ModelNamespaceValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ModelNamespace");
                    if ((data != null))
                    {
                        this._ModelNamespaceField = ((string)(data));
                    }
                }
                bool ContextNameValueAcquired = false;
                if (this.Session.ContainsKey("ContextName"))
                {
                    this._ContextNameField   = ((string)(this.Session["ContextName"]));
                    ContextNameValueAcquired = true;
                }
                if ((ContextNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ContextName");
                    if ((data != null))
                    {
                        this._ContextNameField = ((string)(data));
                    }
                }
                bool ConnectionStringValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionString"))
                {
                    this._ConnectionStringField   = ((string)(this.Session["ConnectionString"]));
                    ConnectionStringValueAcquired = true;
                }
                if ((ConnectionStringValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionString");
                    if ((data != null))
                    {
                        this._ConnectionStringField = ((string)(data));
                    }
                }
                bool SuppressConnectionStringWarningValueAcquired = false;
                if (this.Session.ContainsKey("SuppressConnectionStringWarning"))
                {
                    this._SuppressConnectionStringWarningField   = ((bool)(this.Session["SuppressConnectionStringWarning"]));
                    SuppressConnectionStringWarningValueAcquired = true;
                }
                if ((SuppressConnectionStringWarningValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("SuppressConnectionStringWarning");
                    if ((data != null))
                    {
                        this._SuppressConnectionStringWarningField = ((bool)(data));
                    }
                }
                bool UseDataAnnotationsValueAcquired = false;
                if (this.Session.ContainsKey("UseDataAnnotations"))
                {
                    this._UseDataAnnotationsField   = ((bool)(this.Session["UseDataAnnotations"]));
                    UseDataAnnotationsValueAcquired = true;
                }
                if ((UseDataAnnotationsValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("UseDataAnnotations");
                    if ((data != null))
                    {
                        this._UseDataAnnotationsField = ((bool)(data));
                    }
                }
                bool CodeValueAcquired = false;
                if (this.Session.ContainsKey("Code"))
                {
                    this._CodeField   = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(this.Session["Code"]));
                    CodeValueAcquired = true;
                }
                if ((CodeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Code");
                    if ((data != null))
                    {
                        this._CodeField = ((global::Microsoft.EntityFrameworkCore.Design.ICSharpHelper)(data));
                    }
                }
                bool ProviderCodeValueAcquired = false;
                if (this.Session.ContainsKey("ProviderCode"))
                {
                    this._ProviderCodeField   = ((global::Microsoft.EntityFrameworkCore.Scaffolding.IProviderConfigurationCodeGenerator)(this.Session["ProviderCode"]));
                    ProviderCodeValueAcquired = true;
                }
                if ((ProviderCodeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ProviderCode");
                    if ((data != null))
                    {
                        this._ProviderCodeField = ((global::Microsoft.EntityFrameworkCore.Scaffolding.IProviderConfigurationCodeGenerator)(data));
                    }
                }
                bool AnnotationCodeValueAcquired = false;
                if (this.Session.ContainsKey("AnnotationCode"))
                {
                    this._AnnotationCodeField   = ((global::Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator)(this.Session["AnnotationCode"]));
                    AnnotationCodeValueAcquired = true;
                }
                if ((AnnotationCodeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("AnnotationCode");
                    if ((data != null))
                    {
                        this._AnnotationCodeField = ((global::Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator)(data));
                    }
                }
                bool ConfigurationContextFolderValueAcquired = false;
                if (this.Session.ContainsKey("ConfigurationContextFolder"))
                {
                    this._ConfigurationContextFolderField   = ((string)(this.Session["ConfigurationContextFolder"]));
                    ConfigurationContextFolderValueAcquired = true;
                }
                if ((ConfigurationContextFolderValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConfigurationContextFolder");
                    if ((data != null))
                    {
                        this._ConfigurationContextFolderField = ((string)(data));
                    }
                }
                bool GetEntityNameValueAcquired = false;
                if (this.Session.ContainsKey("GetEntityName"))
                {
                    this._GetEntityNameField   = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(this.Session["GetEntityName"]));
                    GetEntityNameValueAcquired = true;
                }
                if ((GetEntityNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetEntityName");
                    if ((data != null))
                    {
                        this._GetEntityNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(data));
                    }
                }
                bool GetEntityClassNameValueAcquired = false;
                if (this.Session.ContainsKey("GetEntityClassName"))
                {
                    this._GetEntityClassNameField   = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(this.Session["GetEntityClassName"]));
                    GetEntityClassNameValueAcquired = true;
                }
                if ((GetEntityClassNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetEntityClassName");
                    if ((data != null))
                    {
                        this._GetEntityClassNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(data));
                    }
                }
                bool GetEntityConfigurationNameValueAcquired = false;
                if (this.Session.ContainsKey("GetEntityConfigurationName"))
                {
                    this._GetEntityConfigurationNameField   = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(this.Session["GetEntityConfigurationName"]));
                    GetEntityConfigurationNameValueAcquired = true;
                }
                if ((GetEntityConfigurationNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetEntityConfigurationName");
                    if ((data != null))
                    {
                        this._GetEntityConfigurationNameField = ((global::System.Func <Microsoft.EntityFrameworkCore.Metadata.IEntityType, System.String>)(data));
                    }
                }
            }
        }