This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void merge_numbering(PackagePart remote_pp, PackagePart local_pp, XDocument remote_mainDoc, DocX remote) | |
| { | |
| // Add each remote numbering to this document. | |
| IEnumerable<XElement> remote_abstractNums = remote.numbering.Root.Elements(XName.Get("abstractNum", DocX.w.NamespaceName)); | |
| //get next abstract number from base document | |
| var documentAbstractNumbers = numbering.Root.Elements(XName.Get("abstractNum", DocX.w.NamespaceName)); | |
| int guidd = 0; | |
| foreach (var an in documentAbstractNumbers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--Also create ILMerge.exe.config where ILMerge is installed, C:\Program Files (x86)\Microsoft\ILMerge --> | |
| <configuration> | |
| <startup useLegacyV2RuntimeActivationPolicy="true"> | |
| <requiredRuntime safemode="true" imageVersion="v4.0.30319" version="v4.0.30319"/> | |
| </startup> | |
| </configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //extension method make a database call by providing a function pointer to Task<T> and passing in a method parameter | |
| public static async Task<T> DatabaseCall<T>(this IDatabase cache, string key, Func<string, Task<T>> databaseCall, string methodParameter, TimeSpan timeSpan, bool invalidate, bool useCache) | |
| { | |
| T returnValue; | |
| var cachedItem = default(T); | |
| try | |
| { | |
| cachedItem = await cache.GetAsync<T>(key); | |
| } | |
| catch (RedisConnectionException ex) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // -------------------------------------------------------------------------------------------------------------------- | |
| // <summary> | |
| // Defines the VerticalGraphView type. | |
| // </summary> | |
| // -------------------------------------------------------------------------------------------------------------------- | |
| using System.Drawing; | |
| using Cirrious.CrossCore; | |
| using Cirrious.FluentLayouts.Touch; | |
| using Cirrious.MvvmCross.Binding.BindingContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="fileDownloadGrid"></div> | |
| <br /> | |
| @section Scripts { | |
| $("#fileDownloadGrid").kendoGrid({ | |
| dataSource: new kendo.data.DataSource({ | |
| transport: { | |
| read: { | |
| url: "../../../api/Vehicles/VehicleFilesApi", | |
| data: additionalFileData(), | |
| cached: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IConfigurationSource configurationSource = ConfigurationSourceFactory.Create(); | |
| LogWriterFactory logWriterFactory = new LogWriterFactory(configurationSource); | |
| Logger.SetLogWriter(logWriterFactory.Create()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <categorySources> | |
| <add switchValue="Warning" name="Hangfire.BackgroundJobServer"> | |
| <listeners> | |
| <add name="Email - Fail" /> | |
| </listeners> | |
| </add> | |
| <add switchValue="Warning" name="Hangfire.Server.AutomaticRetryServerComponentWrapper"> | |
| <listeners> | |
| <add name="Email - Fail" /> | |
| </listeners> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using (var client = new HttpClient()) | |
| { | |
| ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; | |
| var response = await client.GetAsync(reqUrl); | |
| response.EnsureSuccessStatusCode(); | |
| if (!Convert.ToBoolean(await response.Content.ReadAsStringAsync())) | |
| throw new Exception("Response from webserver was false."); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://blog.falafel.com/passing-dates-kendo-ui-aspnet/ | |
| var _dateToString = function (date) { | |
| return kendo.toString(kendo.parseDate(date), "G"); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | |
| <metadata> | |
| <id>ApplicationNameNoSpaces</id> | |
| <version>$version$</version> | |
| <authors>benh</authors> | |
| <requireLicenseAcceptance>false</requireLicenseAcceptance> | |
| <description>Application Name</description> | |
| </metadata> | |
| <files> |